mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-11 02:52:56 +01:00
49 lines
No EOL
1.1 KiB
YAML
49 lines
No EOL
1.1 KiB
YAML
# Run test job always
|
|
.test:
|
|
stage: test
|
|
rules:
|
|
- when: always
|
|
|
|
# Run build job only on a default branch when triggered manually
|
|
.deploy:
|
|
stage: deploy
|
|
rules:
|
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
when: manual
|
|
|
|
.test_custom:
|
|
extends: .test
|
|
script:
|
|
- ./scripts/custom-docker-build
|
|
rules:
|
|
- when: always
|
|
|
|
.build_and_deploy_custom:
|
|
extends: .deploy
|
|
script:
|
|
- ./scripts/custom-docker-build --label "ci_pipeline_url=$CI_PIPELINE_URL" --label "ci_job_url=$CI_JOB_URL"
|
|
- ./scripts/custom-docker-push
|
|
|
|
.build-with-kaniko:
|
|
needs: []
|
|
tags:
|
|
- gitlab-org
|
|
stage: kaniko
|
|
resource_group: ${CI_COMMIT_REF_SLUG}_${CI_JOB_NAME}
|
|
image: registry.gitlab.com/gitlab-org/gitlab-build-images/unstable/kaniko:1.0.0-596d6b64
|
|
script:
|
|
- pwd
|
|
- ls
|
|
- env
|
|
- crane version
|
|
- /kaniko/executor version
|
|
- ./scripts/kaniko-image-build "$CI_JOB_NAME"
|
|
rules:
|
|
- changes:
|
|
- ${CI_JOB_NAME}/*
|
|
- scripts/kaniko-image-build
|
|
when: always
|
|
- when: manual
|
|
# Overwriting DinD stuff
|
|
services: []
|
|
before_script: [] |