Tryfix pipeline
Some checks failed
pipeline / build-and-push-images (push) Successful in 11s
pipeline / deploy (push) Failing after 12s

This commit is contained in:
2024-11-24 14:55:34 +01:00
parent c64ed88b01
commit 79099b7060

View File

@@ -64,16 +64,21 @@ jobs:
echo "Creating env file as: $(whoami) in: $(pwd)"
echo "GIT_COMMIT_HASH=${{ github.sha }}" >> .env
ls -la .env
- name: Docker Stack deploy
uses: kitconcept/docker-stack-deploy@v1.0.1
source .env
- name: Log in to container registry
uses: docker/login-action@v3
with:
remote_host: 192.168.1.105
remote_user: root
remote_private_key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
stack_file: "docker-compose.yml"
stack_name: "lolstats"
env_file: ".env"
registry: https://git.vhaudiquet.fr
username: ${{ github.actor }}
password: ${{ secrets.PACKAGES_TOKEN }}
password: ${{ secrets.PACKAGES_TOKEN }}
- name: Docker Stack deploy
uses: tristiisch/docker-stack-deployment@v2
with:
remote_docker_host: 192.168.1.105
remote_docker_username: root
ssh_private_key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
deployment_mode: docker-swarm
stack_file_path: "docker-compose.yml"
stack_name: "lolstats"