push
This commit is contained in:
parent
7a9e30cdae
commit
fb78b3b071
@ -34,12 +34,11 @@ deploy-staging:
|
|||||||
- ssh-keyscan -H $SSH_HOST > ~/.ssh/known_hosts
|
- ssh-keyscan -H $SSH_HOST > ~/.ssh/known_hosts
|
||||||
script:
|
script:
|
||||||
- scp target/$CARGO_TARGET/release/rot $SSH_USER@$SSH_HOST:/home/k004373/rowing-staging
|
- scp target/$CARGO_TARGET/release/rot $SSH_USER@$SSH_HOST:/home/k004373/rowing-staging
|
||||||
- ssh $SSH_USER@$SSH_HOST 'rm /home/k004373/rowing-staging/db.sqlite && cp /home/k004373/rowing/db.sqlite /home/k004373/rowing-staging/db.sqlite'
|
- ssh $SSH_USER@$SSH_HOST 'rm /home/k004373/rowing-staging/db.sqlite && cp /home/k004373/rowing/db.sqlite /home/k004373/rowing-staging/db.sqlite && mkdir /home/k004373/rowing-staging/svelte/build'
|
||||||
- scp -r static $SSH_USER@$SSH_HOST:/home/k004373/rowing-staging/
|
- scp -r static $SSH_USER@$SSH_HOST:/home/k004373/rowing-staging/
|
||||||
- scp -r templates $SSH_USER@$SSH_HOST:/home/k004373/rowing-staging/
|
- scp -r templates $SSH_USER@$SSH_HOST:/home/k004373/rowing-staging/
|
||||||
- scp -r svelte $SSH_USER@$SSH_HOST:/home/k004373/rowing-staging/
|
- scp -r svelte $SSH_USER@$SSH_HOST:/home/k004373/rowing-staging/
|
||||||
- ssh $SSH_USER@$SSH_HOST '/bin/systemctl restart rotstaging'
|
- ssh $SSH_USER@$SSH_HOST 'sudo systemctl restart rotstaging'
|
||||||
|
|
||||||
only:
|
only:
|
||||||
- staging
|
- staging
|
||||||
|
|
||||||
@ -51,12 +50,12 @@ deploy-main:
|
|||||||
- echo "$SSH_PRIVATE_KEY" | ssh-add -
|
- echo "$SSH_PRIVATE_KEY" | ssh-add -
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- chmod 700 ~/.ssh
|
- chmod 700 ~/.ssh
|
||||||
|
- ssh-keyscan -H $SSH_HOST > ~/.ssh/known_hosts
|
||||||
script:
|
script:
|
||||||
- scp target/$CARGO_TARGET/release/rot $SSH_USER@$SSH_HOST:/home/k004373/rowing
|
- scp target/$CARGO_TARGET/release/rot $SSH_USER@$SSH_HOST:/home/k004373/rowing
|
||||||
- scp -r static $SSH_USER@$SSH_HOST:/home/k004373/rowing/
|
- scp -r static $SSH_USER@$SSH_HOST:/home/k004373/rowing/
|
||||||
- scp -r templates $SSH_USER@$SSH_HOST:/home/k004373/rowing/
|
- scp -r templates $SSH_USER@$SSH_HOST:/home/k004373/rowing/
|
||||||
- scp -r svelte $SSH_USER@$SSH_HOST:/home/k004373/rowing/
|
- scp -r svelte $SSH_USER@$SSH_HOST:/home/k004373/rowing/
|
||||||
- ssh $SSH_USER@$SSH_HOST '/bin/systemctl restart rot'
|
- ssh $SSH_USER@$SSH_HOST 'sudo systemctl restart rot'
|
||||||
|
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
|
Loading…
Reference in New Issue
Block a user