Skip to content

chore(deps): update postgres:16.6 docker digest to c965017 (#244) #166

chore(deps): update postgres:16.6 docker digest to c965017 (#244)

chore(deps): update postgres:16.6 docker digest to c965017 (#244) #166

Workflow file for this run

name: 🚀 Deploy
on:
push:
branches:
- main
paths:
- "**/compose.yml"
- .github/workflows/deploy.yml
jobs:
Deploy:
runs-on: Ubuntu-Latest
steps:
- name: 🛣️ Setup Tailscale
uses: tailscale/github-action@8688eb839e58e6b25c1ae96cd99d1c173299b842 # v3
with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_CLIENT_SECRET }}
tags: "tag:actions"
- name: 🔐 SSH to Deploy
uses: appleboy/ssh-action@7eaf76671a0d7eec5d98ee897acda4f968735a17 # v1.2.0
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script_stop: true
script: |
${{ secrets.PRE_COMMAND }}
git -C "${{ secrets.GIT_PATH }}" fetch
git -C "${{ secrets.GIT_PATH }}" reset --hard origin/main
while read -r compose; do
docker compose -f "$compose" up -d --quiet-pull
done < <(find "${{ secrets.GIT_PATH }}" -name 'compose.yml')
docker image prune -af
docker volume prune -af