Skip to content

Commit

Permalink
change gcp deploy to run commands directly instead of using alias
Browse files Browse the repository at this point in the history
  • Loading branch information
msukkari committed Feb 22, 2025
1 parent f878e92 commit 21fb03c
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/gcp-deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,16 @@ jobs:
- name: Deploy to GCP
run: |
ssh -i ~/.ssh/private.key ${{ secrets.GCP_STAGING_USERNAME }}@${{ secrets.GCP_STAGING_HOST }} << 'EOF'
# Stop existing container (if running)
staging_stop || true
# Start new container
staging_start
# Stop and remove any existing container
docker stop sourcebot-staging || true
docker rm sourcebot-staging || true
# Run new container
docker run -d \
-p 80:3000 \
--pull always \
--env-file .env.staging \
-v /mnt/data:/data \
--name sourcebot-staging \
ghcr.io/sourcebot-dev/sourcebot:staging
EOF

0 comments on commit 21fb03c

Please sign in to comment.