Skip to content

Commit

Permalink
Update docker-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaosen7 authored Aug 3, 2024
1 parent 1313e39 commit 5b181ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
script: |
cd ${{ secrets.VPS_WORK_DIR }}/deploy/production
export $(grep -v '^#' ~/.env.local | xargs)
echo $DOCKER_PASSWORD | docker login $DOCKER_REGISTRY -u $DOCKER_USER --password-stdin
docker compose pull ${{ github.event.client_payload.app }}
docker compose up -d ${{ github.event.client_payload.app }}
docker image prune -f

0 comments on commit 5b181ba

Please sign in to comment.