This commit is contained in:
Neale Pickett 2021-10-18 19:21:49 -06:00
parent c477c1d2ea
commit 54442ed1b9
1 changed files with 6 additions and 8 deletions

View File

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