更新 .gitea/workflows/main.yaml
Docker Deploy / build-and-deploy (push) Failing after 0s
Details
Docker Deploy / build-and-deploy (push) Failing after 0s
Details
This commit is contained in:
parent
61bb5f2d7a
commit
6be7285d09
|
@ -66,6 +66,7 @@ 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
|
||||||
|
|
||||||
- name: setup nginx
|
- name: setup nginx
|
||||||
uses: http://${{vars.DOMAIN}}:5678/tools/action-setup-nginx@v1
|
uses: http://${{vars.DOMAIN}}:5678/tools/action-setup-nginx@v1
|
||||||
id: nginx
|
id: nginx
|
||||||
|
@ -73,7 +74,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "Hello, world!" > "${{ steps.nginx.outputs.html-dir }}/index.html"
|
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!
|
# Expected output: Hello, world!
|
||||||
|
|
||||||
cat "${{ steps.nginx.outputs.access-log }}"
|
cat "${{ steps.nginx.outputs.access-log }}"
|
||||||
|
|
Loading…
Reference in New Issue