This commit is contained in:
shaoyongjun 2024-04-29 19:38:14 +08:00
parent 1bf34de4a7
commit 9a912eebce

View File

@ -13,6 +13,10 @@ stages:
- .go/pkg/mod/
golang-build:
only:
- master
- uat
- test
stage: build
image: golang:1.22.0
extends: .go-cache
@ -31,6 +35,10 @@ golang-build:
expire_in: 1 hour
docker-package:
only:
- master
- uat
- test
stage: package
script:
- |
@ -52,6 +60,8 @@ docker-package:
dotenv: docker-build.env
deploy:
only:
- master
when: manual
image: laoma/nomad:v1
stage: deploy