Skip to content

Commit

Permalink
Fix for tagged builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Bethke committed Mar 23, 2022
1 parent 23a4ea6 commit b2aa798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ before_script:

build:
script:
- "tag=$(echo -n ${CI_COMMIT_BRANCH} | tr -c '[:alnum:]' '-' | tr '[:upper:]' '[:lower:]')"
- "tag=$(echo -n ${CI_COMMIT_BRANCH:-${CI_COMMIT_REF_NAME}} | tr -c '[:alnum:]' '-' | tr '[:upper:]' '[:lower:]')"
- >
gradle --build-cache clean test jib
-Djib.to.image=${CI_REGISTRY_IMAGE}/${CI_PROJECT_NAME}
Expand Down

0 comments on commit b2aa798

Please sign in to comment.