更新 .gitea/workflows/main.yaml
Docker Deploy / build-and-deploy (push) Successful in 1m51s Details

This commit is contained in:
root 2024-07-09 22:22:16 +08:00
parent 870ae671d4
commit 090a2d22cf
1 changed files with 8 additions and 7 deletions

View File

@ -66,16 +66,17 @@ jobs:
- name: Run On Server
run: |
docker run -d --name $CTN_NAME -p $HOST_PORT:8080 $REMOTE_IMG_NAME
- uses: http://${{vars.DOMAIN}}:5678/tools/action-setup-nginx@v1
id: nginx
# - uses: http://${{vars.DOMAIN}}:5678/tools/action-setup-nginx@v1
# id: nginx
- run: |
echo "Hello, world!" > "${{ steps.nginx.outputs.html-dir }}/index.html"
# - run: |
# echo "Hello, world!" > "${{ steps.nginx.outputs.html-dir }}/index.html"
curl http://${{vars.DOMAIN}}:${{ steps.nginx.outputs.port }}/
# Expected output: Hello, world!
# curl http://${{vars.DOMAIN}}:${{ steps.nginx.outputs.port }}/
# # Expected output: Hello, world!
cat "${{ steps.nginx.outputs.access-log }}"
# cat "${{ steps.nginx.outputs.access-log }}"
# Expected to contain a line with GET / HTTP/1.1 200