diff --git a/.gitea/workflows/pipeline.yaml b/.gitea/workflows/pipeline.yaml index 82a67d6..2ff5050 100644 --- a/.gitea/workflows/pipeline.yaml +++ b/.gitea/workflows/pipeline.yaml @@ -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 }} \ No newline at end of file + 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"