Last active
January 3, 2023 09:33
-
-
Save lookis/67259dfdd67924c97463b845c7c4cf8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- build | |
- deploy | |
build: | |
stage: build | |
script: | |
- | | |
export CI_APPLICATION_REPOSITORY=${CI_APPLICATION_REPOSITORY:-$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG} | |
export CI_APPLICATION_TAG=${CI_APPLICATION_TAG:-$CI_COMMIT_SHA} | |
- /home/gitlab-runner/scripts/build.sh | |
rules: | |
- if: '$CI_COMMIT_TAG || $CI_COMMIT_BRANCH' | |
deploy_kn: | |
stage: deploy | |
script: | |
- | | |
export CI_APPLICATION_REPOSITORY=${CI_APPLICATION_REPOSITORY:-$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG} | |
export CI_APPLICATION_TAG=${CI_APPLICATION_TAG:-$CI_COMMIT_SHA} | |
- /home/gitlab-runner/scripts/deploy.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment