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.
This commit is contained in:
Hector 2021-02-07 10:51:43 +00:00
parent 570c162c13
commit 88be0f358e

View file

@ -5,6 +5,7 @@ before_script:
stages: stages:
- test - test
- build
format: format:
stage: test stage: test
@ -20,3 +21,14 @@ test:
stage: test stage: test
script: script:
- make test - make test
build:
stage: build
script:
- git fetch --tags
- make build/snapshot
artifacts:
paths:
- dist/*.tar.gz
- dist/checksums.txt
expire_in: 1 day