deploy-docker-image #300
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Docker Image on Self-Hosted | |
on: | |
repository_dispatch: | |
types: | |
- deploy-docker-image | |
workflow_dispatch: | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
environment: | |
name: 'self-hosted-backend' | |
url: 'https://vps2-sitenexusmods.aragas.org' | |
steps: | |
- name: multiple command | |
uses: appleboy/ssh-action@master | |
with: | |
#host: ${{ secrets.HOST }} | |
host: ${{ secrets.HOST_3 }} | |
#username: ${{ secrets.USERNAME }} | |
username: ${{ secrets.USERNAME_3 }} | |
#password: ${{ secrets.PASSWORD }} | |
password: ${{ secrets.PASSWORD_3 }} | |
#port: ${{ secrets.PORT }} | |
port: ${{ secrets.PORT_3 }} | |
script: | | |
docker image pull ghcr.io/butr/sitenexusmods2; | |
docker stack deploy --prune --resolve-image always -c /deploy/sitenexusmods2/docker-compose.yml sitenexusmods2; |