From 88be0f358e6f3bbf9c39c074b01d3ea1d0b17782 Mon Sep 17 00:00:00 2001 From: Hector Date: Sun, 7 Feb 2021 10:51:43 +0000 Subject: [PATCH] ci: add build stage to gitlab ci/cd (#6) Update the Gitlab CI/CD process to include a build stage that uses `goreleaser` to build and package the application. The output of the build is stored as an artifact for 1 day. --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3420a42..a1a0f6c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,7 @@ before_script: stages: - test + - build format: stage: test @@ -20,3 +21,14 @@ test: stage: test script: - make test + +build: + stage: build + script: + - git fetch --tags + - make build/snapshot + artifacts: + paths: + - dist/*.tar.gz + - dist/checksums.txt + expire_in: 1 day