Skip to content

Commit

Permalink
Use the same Docker tag names in Gitlab CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyil committed Aug 20, 2020
1 parent 02f60a7 commit 821e656
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ quay.io:
before_script:
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USER" --password-stdin https://quay.io
script:
- docker build -t $QUAY_REPOSITORY:latest -t $QUAY_REPOSITORY:ci-$CI_COMMIT_SHA .
- docker build -t $QUAY_REPOSITORY:latest -t $QUAY_REPOSITORY:git-$CI_COMMIT_SHA .
- docker push $QUAY_REPOSITORY:latest
- docker push $QUAY_REPOSITORY:ci-$CI_COMMIT_SHA
- docker push $QUAY_REPOSITORY:git-$CI_COMMIT_SHA

registry.gitlab.com:
stage: push
Expand All @@ -38,6 +38,6 @@ registry.gitlab.com:
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker build -t $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE:ci-$CI_COMMIT_SHA .
- docker build -t $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE:git-$CI_COMMIT_SHA .
- docker push $CI_REGISTRY_IMAGE:latest
- docker push $CI_REGISTRY_IMAGE:ci-$CI_COMMIT_SHA
- docker push $CI_REGISTRY_IMAGE:git-$CI_COMMIT_SHA

0 comments on commit 821e656

Please sign in to comment.