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: # 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