Skip to content
Snippets Groups Projects
Commit 88492ec4 authored by ehartley's avatar ehartley
Browse files

Update .gitlab-ci.yml file - testing how to control which repo jobs run in.

parent 7578892a
No related branches found
Tags v2022-09-02
No related merge requests found
Pipeline #60 failed
......@@ -7,6 +7,13 @@ stages:
- upload
- release
test:
stage: test
script:
- echo "Project URL is ${CI_PROJECT_URL}"
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
pages:
stage: deploy
image: python:3.8-buster
......@@ -18,7 +25,7 @@ pages:
- public
rules:
# Do NOT run the pipeline in the gitlab.c-path.org repo (the source repo).
- if: $CI_PROJECT_URL == "https://gitlab.c-path.org/c-pathontology/critical-path-ontology/"
- if: $CI_RUNNER_SHORT_TOKEN == "AxXzjE-S"
when: never
# Run the pipeline in the gitlab.com mirror repo when a change is made to the main (default) branch.
- if: $CI_PROJECT_URL == "https://gitlab.com/c-pathontology/critical-path-ontology/"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment