Skip to content
Snippets Groups Projects
Verified Commit 45f4a340 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

set branch in yml

parent b6ee1539
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,11 @@ build:
script:
- bash .ci/deploy.sh
artifacts:
expire_in: 1 day
paths:
- public
production:
stage: deploy
image: alpine:3.1
......@@ -28,7 +33,7 @@ production:
- echo "$KNOWNHOSTS" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
- if: '$CI_COMMIT_BRANCH == "develop"'
script:
- ssh -p $SSHPORT $SSHCONNECT "rm -rf ~/web/latest/*"
- scp -P $SSHPORT -r public/* $SSHCONNECT:~/web/latest
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