~tyil/www-fglt.nl

821e656fcbcbdbaf964158d77686fee7b7dfb825 — Patrick Spek 29 days ago 02f60a7
Use the same Docker tag names in Gitlab CI
1 files changed, 4 insertions(+), 4 deletions(-)

M .gitlab-ci.yml
M .gitlab-ci.yml => .gitlab-ci.yml +4 -4
@@ 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


@@ 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