mirror of
https://github.com/mrrpnya/lipu-sona.git
synced 2025-02-13 16:44:39 +00:00
set deploy to only happen on changes to main
This commit is contained in:
parent
6c067207fb
commit
082bf5d117
1 changed files with 3 additions and 0 deletions
|
@ -24,7 +24,10 @@ unit-test-job: # This job runs in the test stage.
|
|||
|
||||
deploy-job: # This job runs in the deploy stage.
|
||||
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
|
||||
only:
|
||||
- main #Do not run the deploy pipeline on merge requests
|
||||
before_script:
|
||||
- if [ -z "$DEPLOY_PRIVATE_KEY" ]; then echo "Can't deploy without a private key."; exit 1; fi
|
||||
- echo "Installing the dependencies..."
|
||||
- apk add rsync openssh-client
|
||||
- mkdir -m 700 -p ~/.ssh
|
||||
|
|
Loading…
Add table
Reference in a new issue