更新 .gitea/workflows/main.yaml
Docker Deploy / build-and-deploy (push) Failing after 2m20s
Details
Docker Deploy / build-and-deploy (push) Failing after 2m20s
Details
This commit is contained in:
parent
ae0ee0fd84
commit
870ae671d4
|
@ -66,10 +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
|
||||
|
||||
- run: |
|
||||
echo "Hello, world!"
|
||||
echo "Hello, world!" > "${{ steps.nginx.outputs.html-dir }}/index.html"
|
||||
|
||||
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
|
||||
|
||||
|
||||
# - name: SSH Deploy
|
||||
|
|
Loading…
Reference in New Issue