Skip to content
Snippets Groups Projects
Commit 44825e69 authored by schnarkus's avatar schnarkus
Browse files

enclose variables in ${}

parent 047fd994
No related branches found
No related tags found
No related merge requests found
Pipeline #58831 passed
---
variables: variables:
version: 0.0.$CI_PIPELINE_IID version: 0.0.$CI_PIPELINE_IID
stages: stages:
- test - test
- build - build
- publish - publish
test_job: test_job:
stage: test stage: test
image: public.ecr.aws/docker/library/golang:1.21 image: public.ecr.aws/docker/library/golang:1.21
script: script:
- go get -t ./... - go get -t ./...
- go test -race -v ./... - go test -race -v ./...
build_job: build_job:
stage: build stage: build
image: public.ecr.aws/docker/library/golang:1.21 image: public.ecr.aws/docker/library/golang:1.21
...@@ -24,11 +26,12 @@ build_job: ...@@ -24,11 +26,12 @@ build_job:
- amd64 - amd64
- arm64 - arm64
script: | script: |
go build -o webservice_$GOOS_$GOARCH.bin ./*.go go build -o webservice_${GOOS}_${GOARCH}.bin ./*.go
artifacts: artifacts:
paths: paths:
- webservice_$GOOS_$GOARCH.bin - webservice_${GOOS}_${GOARCH}.bin
expire_in: 30 sec expire_in: 5 min
publish_job: publish_job:
stage: publish stage: publish
image: public.ecr.aws/ubuntu/ubuntu:22.04_stable image: public.ecr.aws/ubuntu/ubuntu:22.04_stable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment