更新 .gitea/workflows/main.yaml
Docker Deploy / build-and-deploy (push) Successful in 1m51s
Details
Docker Deploy / build-and-deploy (push) Successful in 1m51s
Details
This commit is contained in:
parent
870ae671d4
commit
090a2d22cf
|
@ -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
|
# - uses: http://${{vars.DOMAIN}}:5678/tools/action-setup-nginx@v1
|
||||||
|
# id: nginx
|
||||||
|
|
||||||
- run: |
|
# - run: |
|
||||||
echo "Hello, world!" > "${{ steps.nginx.outputs.html-dir }}/index.html"
|
# echo "Hello, world!" > "${{ steps.nginx.outputs.html-dir }}/index.html"
|
||||||
|
|
||||||
curl http://${{vars.DOMAIN}}:${{ steps.nginx.outputs.port }}/
|
# curl http://${{vars.DOMAIN}}:${{ steps.nginx.outputs.port }}/
|
||||||
# Expected output: Hello, world!
|
# # 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
|
# Expected to contain a line with GET / HTTP/1.1 200
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue