Skip to content

deploy-docker-image #27

deploy-docker-image

deploy-docker-image #27

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://crash.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/crashreportserver;
docker stack deploy --prune --resolve-image always -c /deploy/crashreportserver/docker-compose.yml crashreportserver;