Use sup tool for deploy

This commit is contained in:
2020-03-14 20:24:44 +03:00
parent e88005be78
commit 5e4fce3bec
2 changed files with 60 additions and 2 deletions

View File

@ -51,8 +51,12 @@ jobs:
- add_ssh_keys
- run: apk add -u openssh-client
- run: ssh-keyscan "$TARGET_HOST" >> ~/.ssh/known_hosts
- run: echo "$YANDEX_CLOUD_DOCKER_REGISTRY_KEY" | ssh "dayoff@$TARGET_HOST" -T "cat > /home/dayoff/yandex_cloud_docker_registry_key.json"
- run: cat docker/deploy-prod | ssh "dayoff@$TARGET_HOST"
# Prepare sup deploy tool
- run: wget https://github.com/pressly/sup/releases/download/v0.5.3/sup-linux64 -O sup
- run: chmod +x ./sup
# Deploy app
- run: echo "$YANDEX_CLOUD_DOCKER_REGISTRY_KEY" > registry_key.json
- run: ./sup -env REG_AUTH_FILE=registry_key.json -debug production deploy
workflows:
version: 2