~tyil/www-fglt.nl

02f60a716a51843ca9cafb6ec56126ce9511efea — Patrick Spek 29 days ago 63017e8
Split up docker pushes to seperate commands in gitlab ci
2 files changed, 5 insertions(+), 2 deletions(-)

M .bundle/config
M .gitlab-ci.yml
M .bundle/config => .bundle/config +1 -0
@@ 1,2 1,3 @@
---
BUNDLE_DEPLOYMENT: "true"
BUNDLE_PATH: "vendor/bundle"

M .gitlab-ci.yml => .gitlab-ci.yml +4 -2
@@ 25,7 25,8 @@ quay.io:
    - 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 push $QUAY_REPOSITORY:latest $QUAY_REPOSITORY:ci-$CI_COMMIT_SHA
    - docker push $QUAY_REPOSITORY:latest
    - docker push $QUAY_REPOSITORY:ci-$CI_COMMIT_SHA

registry.gitlab.com:
  stage: push


@@ 38,4 39,5 @@ registry.gitlab.com:
    - 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 push $CI_REGISTRY_IMAGE:latest $CI_REGISTRY_IMAGE:ci-$CI_COMMIT_SHA
    - docker push $CI_REGISTRY_IMAGE:latest
    - docker push $CI_REGISTRY_IMAGE:ci-$CI_COMMIT_SHA