From 54442ed1b913b68babaed7b92ab9c2d060e6c69f Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Mon, 18 Oct 2021 19:21:49 -0600 Subject: [PATCH] CI/CD --- .gitlab-ci.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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