Skip to content

Commit

Permalink
Merge branch '19-add-path-to-production-for-ci' into 'bmac'
Browse files Browse the repository at this point in the history
Resolve "add path to production for CI"

Closes #19

See merge request ugalibs/collective-access-public-interface!26
  • Loading branch information
kco-uga committed May 9, 2023
2 parents 868bb89 + 2f78fbf commit 809ecbf
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ stages:
- push

# Staging Push
# Manual job to push the last commit to dev to staging
# Manual job to push the last commit to bmac to staging
push_to_staging:
stage: push
only:
Expand All @@ -19,6 +19,25 @@ push_to_staging:
tags:
- shell


# Prod Push
# Manual job to push the last commit to staging to prod
push_to_prod:
stage: push
only:
- bmac-staging
when: manual
script:
- git clone -n https://gitlab.galileo.usg.edu/ugalibs/collective-access-public-interface.git /tmp/collective-access-public-interface_${CI_PIPELINE_ID}
- cd /tmp/collective-access-public-interface_${CI_PIPELINE_ID}
- git checkout ${CI_COMMIT_SHA}
- sudo -H -u pushbot git push origin HEAD:bmac-prod
- cd /tmp
- rm -rf /tmp/collective-access-public-interface_${CI_PIPELINE_ID}
tags:
- shell


## Code Deploy
# Sync the local copy of the code
deploy_staging:
Expand Down

0 comments on commit 809ecbf

Please sign in to comment.