mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 04:15:30 +00:00
change gcp deploy to run commands directly instead of using alias
This commit is contained in:
parent
f878e92344
commit
21fb03c9c6
1 changed files with 12 additions and 5 deletions
15
.github/workflows/gcp-deploy-staging.yml
vendored
15
.github/workflows/gcp-deploy-staging.yml
vendored
|
|
@ -22,9 +22,16 @@ jobs:
|
||||||
- name: Deploy to GCP
|
- name: Deploy to GCP
|
||||||
run: |
|
run: |
|
||||||
ssh -i ~/.ssh/private.key ${{ secrets.GCP_STAGING_USERNAME }}@${{ secrets.GCP_STAGING_HOST }} << 'EOF'
|
ssh -i ~/.ssh/private.key ${{ secrets.GCP_STAGING_USERNAME }}@${{ secrets.GCP_STAGING_HOST }} << 'EOF'
|
||||||
# Stop existing container (if running)
|
# Stop and remove any existing container
|
||||||
staging_stop || true
|
docker stop sourcebot-staging || true
|
||||||
|
docker rm sourcebot-staging || true
|
||||||
|
|
||||||
# Start new container
|
# Run new container
|
||||||
staging_start
|
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
|
EOF
|
||||||
Loading…
Reference in a new issue