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
|
||||
@@ -23,7 +23,7 @@ services:
|
||||
ME_CONFIG_BASICAUTH: "false"
|
||||
|
||||
patch_detector:
|
||||
image: git.vhaudiquet.fr/vhaudiquet/lolstats-patch_detector:latest
|
||||
image: git.vhaudiquet.fr/vhaudiquet/lolstats-patch_detector:${GIT_COMMIT_HASH:-latest}
|
||||
build: ./patch_detector
|
||||
restart: "no"
|
||||
environment:
|
||||
@@ -31,7 +31,7 @@ services:
|
||||
MONGO_PASS: password
|
||||
|
||||
match_collector:
|
||||
image: git.vhaudiquet.fr/vhaudiquet/lolstats-match_collector:latest
|
||||
image: git.vhaudiquet.fr/vhaudiquet/lolstats-match_collector:${GIT_COMMIT_HASH:-latest}
|
||||
build: ./match_collector
|
||||
restart: "no"
|
||||
environment:
|
||||
@@ -41,7 +41,7 @@ services:
|
||||
# restarter:
|
||||
|
||||
frontend:
|
||||
image: git.vhaudiquet.fr/vhaudiquet/lolstats-frontend:latest
|
||||
image: git.vhaudiquet.fr/vhaudiquet/lolstats-frontend:${GIT_COMMIT_HASH:-latest}
|
||||
build: ./frontend
|
||||
restart: always
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user