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:
parent
570c162c13
commit
88be0f358e
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue