Added deploy gitea action
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user