This commit is contained in:
parent
f394456e7b
commit
57736e1d86
1 changed files with 2 additions and 6 deletions
|
@ -11,12 +11,8 @@ steps:
|
|||
- docker-compose -f docker-compose.build.yml build
|
||||
- docker push git.webdeploy.it/pianello/frontend:latest
|
||||
- docker push git.webdeploy.it/pianello/frontend:$(jq -r .version ./frontend/package.json)
|
||||
# DEPLOY STUFF
|
||||
- eval $(ssh-agent -s)
|
||||
- mkdir -p ~/.ssh
|
||||
- printf "%s" "$${RUNNER_PRIVATE_KEY}" > ~/.ssh/id_ed25519
|
||||
- chmod 600 ~/.ssh/id_ed25519
|
||||
- ssh-add ~/.ssh/id_ed25519
|
||||
#### Deploy
|
||||
- config_ssh.sh "$${RUNNER_PRIVATE_KEY}"
|
||||
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
||||
- cat .env | ssh pianello@pianello.webdeploy.it "cat - > .env" # copy env
|
||||
- cat docker-compose.prod.yml | ssh pianello@pianello.webdeploy.it "cat - > docker-compose.yml && docker compose pull && docker compose up -d --remove-orphans"
|
||||
|
|
Loading…
Reference in a new issue