This commit is contained in:
Carneiro 2024-11-25 14:30:21 -03:00
parent f38aea9f5e
commit 4ba82cf5ed
1 changed files with 23 additions and 10 deletions

View File

@ -9,13 +9,26 @@ jobs:
- name: Checkout codebase
uses: actions/checkout@v2
- name: Deploy
uses: kitconcept/docker-stack-deploy@v1.0.1
with:
remote_host: alice.ufsj.edu.br
remote_port: 55022
remote_user: act_runner
remote_private_key: ${{ secrets.SSH_PRIV_KEY }}
stack_file: "docker-compose.yml"
stack_name: "filestash"
# - name: Deploy
# uses: kitconcept/docker-stack-deploy@v1.0.1
# with:
# remote_host: alice.ufsj.edu.br
# remote_port: 55022
# remote_user: act_runner
# remote_private_key: ${{ secrets.SSH_PRIV_KEY }}
# stack_file: "docker-compose.yml"
# stack_name: "filestash"
- name: Deploy to Docker swarm
uses: wshihadeh/docker-deployment-action@v1
with:
remote_docker_host: ${{ secret.SSH_USERNAME }}@${{ secret.SSH_HOST }}
ssh_private_key: ${{ secrets.SSH_PRIV_KEY }}
remote_docker_port: ${{ secrets.SSH_PORT}}
# ssh_public_key: ${{ secrets.DOCKER_SSH_PUBLIC_KEY }}
deployment_mode: docker-swarm
copy_stack_file: false
# deploy_path: /root/my-deployment
stack_file_name: docker-compose.yaml
keep_files: 1
args: filestash