Skip to content

Commit

Permalink
ci: deploy to staging hetzner
Browse files Browse the repository at this point in the history
  • Loading branch information
osiastedian committed Nov 26, 2024
1 parent c112863 commit 8cf2d00
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ghcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
docker:
permissions:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
Expand Down Expand Up @@ -76,12 +76,14 @@ jobs:

- name: Deploy Frontend Service
uses: appleboy/ssh-action@v0.1.9
env:
IMAGE_TAG: ${{ steps.read-metadata.outputs.tags }}
with:
host: ${{ secrets.HETZNER_STAGING_HOST }}
username: root
key: ${{ secrets.HETZNER_SSH_KEY }}
script: |
export FRONTEND_IMAGE="${{ steps.read-metadata.outputs.tags | split(',')[0] }}"
export FRONTEND_IMAGE="${{ env.IMAGE_TAG }}"
cd /root/bridge
docker-compose pull frontend
docker-compose up -d frontend

0 comments on commit 8cf2d00

Please sign in to comment.