mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-05 18:29:20 +02:00
- add docker images for app (castopod) and web-server (nginx) - ci: deploy images continuously to a docker hub using kaniko - ci: trigger docker-build-rolling on develop branch - move development DockerFile to docker directory closes #200
21 lines
596 B
YAML
21 lines
596 B
YAML
stages:
|
|
- build
|
|
|
|
docker-build-rolling:
|
|
stage: build
|
|
image:
|
|
name: gcr.io/kaniko-project/executor:debug
|
|
entrypoint: [""]
|
|
variables:
|
|
TAG: $CI_COMMIT_BRANCH
|
|
script:
|
|
- cp ${DOCKER_HUB_CONFIG} /kaniko/.docker/config.json
|
|
- /kaniko/executor --context . --dockerfile docker/production/web-server/Dockerfile --destination ${DOCKER_IMAGE_WEB_SERVER}:${TAG}
|
|
- /kaniko/executor --context . --dockerfile docker/production/app/Dockerfile --destination ${DOCKER_IMAGE_APP}:${TAG}
|
|
needs:
|
|
- pipeline: $PARENT_PIPELINE_ID
|
|
job: bundle
|
|
only:
|
|
refs:
|
|
- develop
|