Skip to content

Commit 2ea91a2

Browse files
committed
fix: update deploy-demo workflow for error handling and docker compose commands
- Changed `continue-on-error` to conditionally handle errors based on the event type. - Updated comments and commands to use the new `docker compose` syntax instead of `docker-compose` for consistency. - Cleaned up echo statements for clarity in the deployment process.
1 parent 1666ae7 commit 2ea91a2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/deploy-demo.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Deploy to Demo Environment
23-
continue-on-error: true
23+
continue-on-error: ${{ github.event_name == 'workflow_call' }}
2424
id: deploy
2525
uses: appleboy/[email protected]
2626
with:
@@ -34,19 +34,19 @@ jobs:
3434
# Navigate to the demo directory
3535
cd ${{ secrets.DEMO_DEPLOY_PATH || '/opt/peekaping-demo' }}
3636
37-
# Update docker-compose to use the new version
38-
echo "📝 Updating docker-compose with new image tags..."
37+
# Update docker compose to use the new version
38+
echo "📝 Updating docker compose with new image tags..."
3939
4040
# Update image tags to the new version
4141
sed -i "s|0xfurai/peekaping-web:.*|0xfurai/peekaping-web:${{ inputs.version }}|g" compose-demo.yaml
4242
sed -i "s|0xfurai/peekaping-server:.*|0xfurai/peekaping-server:${{ inputs.version }}|g" compose-demo.yaml
4343
sed -i "s|0xfurai/peekaping-migrate:.*|0xfurai/peekaping-migrate:${{ inputs.version }}|g" compose-demo.yaml
4444
4545
echo "📥 Pulling new Docker images..."
46-
docker-compose -f compose-demo.yaml pull
46+
docker compose -f compose-demo.yaml pull
4747
4848
# echo "🔄 Recreating services with new images..."
49-
# docker-compose up -d --force-recreate
49+
# docker compose up -d --force-recreate
5050
5151
echo "🧹 Cleaning up old images..."
5252
docker image prune -f

0 commit comments

Comments
 (0)