Skip to content

Deploy all services to host #15

Deploy all services to host

Deploy all services to host #15

Workflow file for this run

name: Deploy all services to host
on:
workflow_dispatch:
env:
REGISTRY: ghcr.io
jobs:
deploy:
name: Deploy to Host
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- name: Pull new images on host and restart containers
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: |
docker login ${{ env.REGISTRY }} -u ${{ github.actor }} -p ${{ github.token }}
docker compose pull
docker compose up -d
docker logout ${{ env.REGISTRY }}