From 870ae671d4ce8dc82622762f38a5da421b749775 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 9 Jul 2024 22:18:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/main.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/main.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index 119497b..0d6540d 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -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