38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
name: Deploy
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
on: [push]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout codebase
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Deploy
|
|
uses: kitconcept/docker-stack-deploy@v1.0.1
|
|
with:
|
|
registry:
|
|
username:
|
|
password:
|
|
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: ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }}
|
|
# ssh_private_key: ${{ secrets.SSH_PRIV_KEY }}
|
|
# remote_docker_port: ${{ secrets.SSH_PORT}}
|
|
# ssh_public_key: ${{ secrets.SSH_PUB_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
|