Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Wcc723 committed Sep 30, 2023
1 parent fdeaf17 commit fc43114
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy-docker-vps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
ssh root@${{ secrets.HOST_NAME }} '
docker pull ${{ secrets.DOCKER_HUB_USERNAME }}/ironman-app-2023-amd64:latest
docker rm -f github-ac-sample || true
REAL_PATH=$(eval echo ~)/websample/node-env/.env
docker run -d -p 3003:3000 --name github-ac-sample --env-file $REAL_PATH casper723/ironman-app-2023-amd64:latest
docker run -d -p 3003:3000 --name github-ac-sample --env-file /root/websample/node-env/.env ${{ secrets.DOCKER_HUB_USERNAME }}/ironman-app-2023-amd64:latest
'
# Docker 指令中,不能使用 `~` 路徑,所以使用替代語法展開
# Docker 指令中,不能使用 `~` 路徑,建議替換為其他的絕對路徑名稱(此範例作為演示直接使用 `/root`)

0 comments on commit fc43114

Please sign in to comment.