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:
|
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}
|
|
||||||
|
|
Loading…
Reference in New Issue