ldc-shared-ci/build/docker.yml
Administrator e81737ba82 Update 8 files
- /security/npm.yml
- /security/composer.yml
- /security/security.yml
- /test/test.yml
- /build/composer.yml
- /build/npm.yml
- /build/docker.yml
- /build/build.yml
2023-02-17 12:19:49 +00:00

35 lines
No EOL
898 B
YAML

.docker-build:
stage: build
image:
name: gcr.io/kaniko-project/executor:v1.9.0-debug
entrypoint: [""]
script:
- /kaniko/executor
--context "${CI_PROJECT_DIR}"
--dockerfile "${CI_PROJECT_DIR}/Dockerfile"
--destination "${IMAGE_TAG}"
allow_failure: false
dependencies:
- npm-build
- composer-build
needs:
- job: npm-build
optional: true
- job: composer-build
optional: true
docker-build:develop:
extends: .docker-build
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE/develop:$CI_COMMIT_SHORT_SHA
rules:
- if: $CI_COMMIT_BRANCH == "develop"
docker-build:review:
extends: .docker-build
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE/review:$CI_MERGE_REQUEST_IID
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"