Skip to content

Commit

Permalink
Replace tag with build ref for docker publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
rb3ckers committed Jun 4, 2019
1 parent 99625b6 commit a2cafb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ docker_build:
- docker:dind
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker build -t $IMAGE_FAMILY:${CI_COMMIT_TAG:-dirty} .
- echo docker push $IMAGE_FAMILY:${CI_COMMIT_TAG:-dirty}
- docker push $IMAGE_FAMILY:${CI_COMMIT_TAG:-dirty}
- docker build -t $IMAGE_FAMILY:${CI_BUILD_REF:-dirty} .
- echo docker push $IMAGE_FAMILY:${CI_BUILD_REF:-dirty}
- docker push $IMAGE_FAMILY:${CI_BUILD_REF:-dirty}

0 comments on commit a2cafb3

Please sign in to comment.