Added deploy gitea action
Some checks failed
pipeline / build-and-push-images (push) Successful in 15s
pipeline / deploy (push) Failing after 3s

This commit is contained in:
2024-11-24 13:29:00 +01:00
parent 862e3f1b99
commit cba696e9b8
2 changed files with 24 additions and 3 deletions

View File

@@ -47,3 +47,24 @@ jobs:
tags: |
git.vhaudiquet.fr/vhaudiquet/lolstats-match_collector:latest
git.vhaudiquet.fr/vhaudiquet/lolstats-match_collector:${{ github.sha }}
deploy:
runs-on: debian-latest
needs:
- build-and-push-images
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create env file
run: |
echo "GIT_COMMIT_HASH=${{ github.sha }}" >> ./envfile
- name: Docker Stack deploy
uses: cssnr/stack-deploy-action@v1
with:
name: lolstats
file: docker-compose.yml
host: 192.168.1.105
user: root
ssh_key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
env_file: ./envfile