Skip to content

Commit

Permalink
Resolve "Bugfix docker build in ci keeps failing"
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartendeKruijf committed Jan 30, 2024
1 parent c7dc142 commit 165358c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ cross-compile:
image: golang:latest
stage: build
artifacts:
name: "$CI_JOB_NAME"
name: "$CI_COMMIT_REF_NAME"
paths:
- bin/
expire_in: 2 hrs
Expand Down Expand Up @@ -85,6 +85,7 @@ docker-build: # This job will build the soar-ca docker image on merge request
script:
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin
- apk add git
- ls bin
- export VERSION=$(git describe --tags --dirty)
- echo $VERSION
- docker build --build-arg VERSION -t $CI_REGISTRY_IMAGE:$VERSION .
Expand Down

0 comments on commit 165358c

Please sign in to comment.