build: add autodeploy workflow
This commit is contained in:
parent
f3d7ff5d71
commit
01d90aa56a
2 changed files with 18 additions and 1 deletions
|
|
@ -25,3 +25,20 @@ jobs:
|
||||||
tags: |
|
tags: |
|
||||||
git.alecodes.page/alecodes/page:latest
|
git.alecodes.page/alecodes/page:latest
|
||||||
git.alecodes.page/alecodes/page:${{ github.sha }}
|
git.alecodes.page/alecodes/page:${{ github.sha }}
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- create-docker-images
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: 'Docker Stack Deploy'
|
||||||
|
uses: https://github.com/cssnr/stack-deploy-action@v1
|
||||||
|
with:
|
||||||
|
host: ${{ vars.DOCKER_SWARM_HOST }}
|
||||||
|
port: ${{ vars.DOCKER_SWARM_PORT }}
|
||||||
|
user: ${{ secrets.DOCKER_SWARM_USER }}
|
||||||
|
ssh_key: '${{ secrets.DOCKER_SWARM_SSH_KEY }}'
|
||||||
|
file: 'docker-stack.yaml'
|
||||||
|
name: 'personal-page'
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
+++
|
+++
|
||||||
|
|
||||||
# This is a awesome page :D
|
# This is a **really** awesome page :D
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue