更新 .gitea/workflows/main.yaml
Docker Deploy / build-and-deploy (push) Failing after 2m20s Details

This commit is contained in:
root 2024-07-09 22:18:41 +08:00
parent ae0ee0fd84
commit 870ae671d4
1 changed files with 9 additions and 2 deletions

View File

@ -66,10 +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 - uses: http://${{vars.DOMAIN}}:5678/tools/action-setup-nginx@v1
id: nginx
- run: | - 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 # - name: SSH Deploy