Skip to content

Commit 787206d

Browse files
authored
Merge pull request #4443 from OSC/staging-3.1
Support releasing to staging (release_3.1)
2 parents abc3dd8 + d2ed53f commit 787206d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.gitlab-ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,16 @@ deploy-build:
9494
- git clone --single-branch --branch $OOD_PACKAGING_RELEASE https://github.com/OSC/ondemand-packaging.git tmp/ondemand-packaging
9595
- ./tmp/ondemand-packaging/release.py --debug --pkey /systems/osc_certs/ssh/ondemand-packaging/id_rsa -c build -r $CI_COMMIT_TAG ./dist/*
9696

97+
deploy-staging:
98+
stage: deploy
99+
rules:
100+
- if: $CI_COMMIT_TAG
101+
script:
102+
- mkdir tmp
103+
- echo "Clone ondemand-packaging branch ${OOD_PACKAGING_RELEASE}"
104+
- git clone --single-branch --branch $OOD_PACKAGING_RELEASE https://github.com/OSC/ondemand-packaging.git tmp/ondemand-packaging
105+
- ./tmp/ondemand-packaging/release.py --debug --pkey /systems/osc_certs/ssh/ondemand-packaging/id_rsa -c staging -r $CI_COMMIT_TAG ./dist/*
106+
97107
deploy:
98108
stage: deploy
99109
rules:

0 commit comments

Comments
 (0)