deploy-docker-image #39
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://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; |