mirror of
https://gitlab.com/Anson-Projects/wiki-location-bot.git
synced 2025-06-15 14:46:39 +00:00
31 lines
885 B
YAML
31 lines
885 B
YAML
build:main:
|
|
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 "${CI_REGISTRY_IMAGE}:latest"
|
|
--destination "${CI_REGISTRY_IMAGE}:stable"
|
|
--destination "${CI_REGISTRY_IMAGE}:dev"
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH == "main"'
|
|
|
|
|
|
build:branch:
|
|
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 "${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}"
|
|
--destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_BRANCH}"
|
|
--destination "${CI_REGISTRY_IMAGE}:dev"
|
|
rules:
|
|
- if: '$CI_COMMIT_BRANCH != "main"'
|