https://docs.gitlab.com/ee/ci/yaml/#trigger
variables:
DOCKER_TAG: 1.0.1-release
stages:
- test
- deploy
test:
stage: test
script:
- |
echo $DOCKER_TAG
deploy:
stage: deploy
trigger: awiechert/job2
deploy:
stage: deploy
script:
- echo $DOCKER_TAG
variables:
DOCKER_TAG: 1.0.1-release
stages:
- test
- deploy
test:
stage: test
script:
- |
echo $DOCKER_TAG
deploy:
stage: deploy
trigger: awiechert/job2
when: manual
https://gitlab.com/gitlab-org/gitlab/-/issues/30101
variables:
K8S_CLUSTER_NAME:
description: "Deploy to which kubernetes cluster? Valid values are -> dev-level-1 dev-level-2 prod01"
value: "dev-level-1"
DOCKER_TAG: 1.0.1-release
stages:
- test
- deploy
test:
stage: test
script:
- |
echo $DOCKER_TAG
echo $K8S_CLUSTER_NAME
deploy:
stage: deploy
trigger: a1ae440/job2
when: manual
deploy:
stage: deploy
script:
- |
echo $DOCKER_TAG
echo $K8S_CLUSTER_NAME
variables:
K8S_CLUSTER_NAME:
description: "Deploy to which kubernetes cluster? Valid values are -> dev-level-1 dev-level-2 prod01"
value: "dev-level-1"
DOCKER_TAG: $CI_COMMIT_TAG
stages:
- test
- deploy
test:
stage: test
script:
- |
echo $DOCKER_TAG
echo $K8S_CLUSTER_NAME
deploy:
stage: deploy
trigger: a1ae440/job2
when: manual