diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3c8fa75..15b711c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,15 +14,13 @@ test: push: stage: push + image: + gcr.io/kaniko-project/executor:debug + entrypoint: [""] rules: - if: $CI_COMMIT_TAG - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' script: - - > - docker build - --file build/package/Containerfile - --tag ghcr.io/dirtbags/moth:${CI_COMMIT_REF_SLUG} - . - - > - docker push - ghcr.io/dirtbags/moth:${CI_COMMIT_REF_SLUG} + - mkdir -p /kaniko/.docker + - echo "$DOCKER_AUTH_CONFIG" > /kaniko/.docker/config.json + - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/build/package/Containerfile --destination ghcr.io/dirtbags/moth:$CI_COMMIT_REF_SLUG