mirror of https://github.com/dirtbags/moth.git
CI/CD
This commit is contained in:
parent
c477c1d2ea
commit
54442ed1b9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue