Fix CI
This commit is contained in:
parent
9856d3f3be
commit
ee63c52b7a
|
@ -16,6 +16,7 @@ build-linux-amd64:
|
|||
image: golang:alpine
|
||||
stage: build
|
||||
script:
|
||||
- apk --no-cache add git
|
||||
- go get -d
|
||||
- GOOS=linux go build -o godns
|
||||
artifacts:
|
||||
|
@ -26,6 +27,7 @@ build-linux-arm:
|
|||
image: golang:alpine
|
||||
stage: build
|
||||
script:
|
||||
- apk --no-cache add git
|
||||
- go get -d
|
||||
- GOARCH=arm GOOS=linux go build -o godns-arm
|
||||
artifacts:
|
||||
|
@ -36,6 +38,7 @@ build-linux-arm64:
|
|||
image: golang
|
||||
stage: build
|
||||
script:
|
||||
- apk --no-cache add git
|
||||
- go get -d
|
||||
- GOARCH=arm64 GOOS=linux go build -o godns-arm64
|
||||
artifacts:
|
||||
|
@ -46,6 +49,7 @@ build-docker-amd64:
|
|||
image: docker:latest
|
||||
stage: build-docker
|
||||
script:
|
||||
- apk --no-cache add git
|
||||
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||
- docker image build -t $CI_REGISTRY_IMAGE:amd64-latest -f docker/Dockerfile .
|
||||
- docker push $CI_REGISTRY_IMAGE:amd64-latest
|
||||
|
|
Loading…
Reference in New Issue