Commit 075326d9 authored by kaiyou's avatar kaiyou Committed by ayiniho
Browse files

Use multiple CI jobs

parent 432fa52c
build:
stage: build
default:
before_script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
only:
- branches
nginx:
stage: build
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR/core/nginx --dockerfile $CI_PROJECT_DIR/core/nginx/Dockerfile --destination $CI_REGISTRY_IMAGE/nginx:$CI_COMMIT_REF_SLUG
dovecot:
stage: build
script:
- /kaniko/executor --context $CI_PROJECT_DIR/core/dovecot --dockerfile $CI_PROJECT_DIR/core/dovecot/Dockerfile --destination $CI_REGISTRY_IMAGE/dovecot:$CI_COMMIT_REF_SLUG
postfix:
stage: build
script:
- /kaniko/executor --context $CI_PROJECT_DIR/core/postfix --dockerfile $CI_PROJECT_DIR/core/postfix/Dockerfile --destination $CI_REGISTRY_IMAGE/postfix:$CI_COMMIT_REF_SLUG
rspamd:
stage: build
script:
- /kaniko/executor --context $CI_PROJECT_DIR/core/rspamd --dockerfile $CI_PROJECT_DIR/core/rspamd/Dockerfile --destination $CI_REGISTRY_IMAGE/rspamd:$CI_COMMIT_REF_SLUG
admin:
stage: build
script:
- /kaniko/executor --context $CI_PROJECT_DIR/core/admin --dockerfile $CI_PROJECT_DIR/core/admin/Dockerfile --destination $CI_REGISTRY_IMAGE/admin:$CI_COMMIT_REF_SLUG
rainloop:
stage: build
script:
- /kaniko/executor --context $CI_PROJECT_DIR/webmails/rainloop --dockerfile $CI_PROJECT_DIR/webmails/rainloop/Dockerfile --destination $CI_REGISTRY_IMAGE/rainloop:$CI_COMMIT_REF_SLUG
fetchmail:
stage: build
script:
- /kaniko/executor --context $CI_PROJECT_DIR/optional/fetchmail --dockerfile $CI_PROJECT_DIR/optional/fetchmail/Dockerfile --destination $CI_REGISTRY_IMAGE/fetchmail:$CI_COMMIT_REF_SLUG
unbound:
stage: build
script:
- /kaniko/executor --context $CI_PROJECT_DIR/optional/unbound --dockerfile $CI_PROJECT_DIR/optional/unbound/Dockerfile --destination $CI_REGISTRY_IMAGE/unbound:$CI_COMMIT_REF_SLUG
only:
- branches
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment