更新 .gitea/workflows/main.yaml
Docker Deploy / build-and-deploy (push) Failing after 0s Details

This commit is contained in:
root 2024-07-09 22:10:13 +08:00
parent 61bb5f2d7a
commit 6be7285d09
1 changed files with 2 additions and 1 deletions

View File

@ -66,6 +66,7 @@ jobs:
- name: Run On Server
run: |
docker run -d --name $CTN_NAME -p $HOST_PORT:8080 $REMOTE_IMG_NAME
- name: setup nginx
uses: http://${{vars.DOMAIN}}:5678/tools/action-setup-nginx@v1
id: nginx
@ -73,7 +74,7 @@ jobs:
run: |
echo "Hello, world!" > "${{ steps.nginx.outputs.html-dir }}/index.html"
curl http://localhost:${{ steps.nginx.outputs.port }}/
curl http://${{vars.DOMAIN}}:5678:${{ steps.nginx.outputs.port }}/
# Expected output: Hello, world!
cat "${{ steps.nginx.outputs.access-log }}"