Tryfix pipeline
This commit is contained in:
@@ -64,16 +64,21 @@ jobs:
|
|||||||
echo "Creating env file as: $(whoami) in: $(pwd)"
|
echo "Creating env file as: $(whoami) in: $(pwd)"
|
||||||
echo "GIT_COMMIT_HASH=${{ github.sha }}" >> .env
|
echo "GIT_COMMIT_HASH=${{ github.sha }}" >> .env
|
||||||
ls -la .env
|
ls -la .env
|
||||||
|
source .env
|
||||||
|
|
||||||
- name: Docker Stack deploy
|
- name: Log in to container registry
|
||||||
uses: kitconcept/docker-stack-deploy@v1.0.1
|
uses: docker/login-action@v3
|
||||||
with:
|
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
|
registry: https://git.vhaudiquet.fr
|
||||||
username: ${{ github.actor }}
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user