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