Skip to content

Instantly share code, notes, and snippets.

@lookis
Last active January 3, 2023 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lookis/67259dfdd67924c97463b845c7c4cf8d to your computer and use it in GitHub Desktop.
Save lookis/67259dfdd67924c97463b845c7c4cf8d to your computer and use it in GitHub Desktop.
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