deploy-docker-image #211
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://vps-sitenexusmods.aragas.org' | |
steps: | |
- name: multiple command | |
uses: appleboy/ssh-action@master | |
with: | |
#host: ${{ secrets.HOST }} | |
host: ${{ secrets.HOST_2 }} | |
#username: ${{ secrets.USERNAME }} | |
username: ${{ secrets.USERNAME_2 }} | |
#password: ${{ secrets.PASSWORD }} | |
password: ${{ secrets.PASSWORD_2 }} | |
#port: ${{ secrets.PORT }} | |
port: ${{ secrets.PORT_2 }} | |
script: | | |
docker image pull ghcr.io/butr/sitenexusmods2; | |
docker stack deploy --prune --resolve-image always -c /deploy/sitenexusmods2/docker-compose.yml sitenexusmods2; |