From 6be7285d093b7ab71981ea6350c23113f4e51aa0 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 9 Jul 2024 22:10:13 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index 1a88963..c0df1c7 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -66,6 +66,7 @@ jobs: - name: Run On Server run: | docker run -d --name $CTN_NAME -p $HOST_PORT:8080 $REMOTE_IMG_NAME + - name: setup nginx uses: http://${{vars.DOMAIN}}:5678/tools/action-setup-nginx@v1 id: nginx @@ -73,7 +74,7 @@ jobs: run: | 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! cat "${{ steps.nginx.outputs.access-log }}"