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: | tags: |
git.vhaudiquet.fr/vhaudiquet/lolstats-match_collector:latest git.vhaudiquet.fr/vhaudiquet/lolstats-match_collector:latest
git.vhaudiquet.fr/vhaudiquet/lolstats-match_collector:${{ github.sha }} 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

View File

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