build: add autodeploy workflow
Some checks failed
Publish image / create-docker-images (push) Successful in 30s
Publish image / deploy (push) Failing after 32s

This commit is contained in:
Alexander Navarro 2024-12-09 10:49:01 -03:00
parent f3d7ff5d71
commit bd89d089a2
2 changed files with 16 additions and 1 deletions

View file

@ -25,3 +25,18 @@ jobs:
tags: |
git.alecodes.page/alecodes/page:latest
git.alecodes.page/alecodes/page:${{ github.sha }}
deploy:
runs-on: ubuntu-latest
needs:
- create-docker-images
steps:
- name: 'Docker Stack Deploy'
uses: https://github.com/cssnr/stack-deploy-action@v1
with:
host: ${{ variables.DOCKER_SWARM_HOST }}
port: ${{ variables.DOCKER_SWARM_PORT }}
user: ${{ secrets.DOCKER_SWARM_USER }}
ssh_key: '${{ secrets.DOCKER_SWARM_SSH_KEY }}'
file: 'docker-stack.yaml'
name: 'personal-page'