From 4dad99ec395d1421f405b4235f21aee542b9dd09 Mon Sep 17 00:00:00 2001 From: Kai Date: Mon, 24 Mar 2025 19:21:38 +0800 Subject: [PATCH] chore: switch runner type in test.yaml from self-hosted to ubuntu-latest for build and deploy jobs --- .github/workflows/test.yaml | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e5f7fe0..49da177 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -6,16 +6,8 @@ on: jobs: build: - runs-on: self-hosted + runs-on: ubuntu-latest steps: - - name: Debug directory - run: | - echo "Current directory:" - pwd - echo "Node PATH:" - which node - echo "Node Version:" - node -v - name: Checkout Code uses: http://gitea.xkkxyy.com/actions/checkout@main - name: Docker Build and Push @@ -24,15 +16,8 @@ jobs: continue-on-error: true deploy: - runs-on: self-hosted + runs-on: ubuntu-latest needs: build steps: - - name: Debug directory - run: | - echo "Current directory:" - pwd - lscpu - echo "Listing /opt/docker:" - ls -l /opt - name: Deploy to Test - run: cd /opt/docker + run: exit && cd /opt/docker && docker compose -f docker-compose.yaml -f my-django/docker-compose.yaml up -d