This commit is contained in:
parent
f35f972716
commit
13da958302
1 changed files with 8 additions and 9 deletions
|
@ -12,15 +12,14 @@ pipeline:
|
|||
- docker push git.webdeploy.it/pianello/frontend:latest
|
||||
- docker push git.webdeploy.it/pianello/frontend:$(jq -r .version ./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
|
||||
# - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
||||
# - cat .env | ssh theater@prev.theater.webdeploy.it -p 11122 "cat - > .env" # copy env
|
||||
# - cat docker-compose.prod.yml | ssh theater@prev.theater.webdeploy.it -p 11122 "cat - > docker-compose.yml && docker compose pull && docker compose stop && docker compose up -d --remove-orphans" # start docker compose
|
||||
|
||||
- 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
|
||||
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
||||
- cat .env | ssh pianello@pianello.webdeploy.it -p 11122 "cat - > .env" # copy env
|
||||
- cat docker-compose.prod.yml | ssh pianello@pianello.webdeploy.it -p 11122 "cat - > docker-compose.yml && docker compose pull && docker compose stop && docker compose up -d --remove-orphans"
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
|
|
Loading…
Reference in a new issue