Skip to content

deploy-docker-image #18

deploy-docker-image

deploy-docker-image #18

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://modlist.butr.link'
steps:
- name: multiple command
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
docker image pull ghcr.io/butr/modlistserver;
docker stack deploy --prune --resolve-image always -c /deploy/modlistserver/docker-compose.yml modlistserver;