chore: switch runner type in test.yaml from self-hosted to ubuntu-latest for build and deploy jobs
This commit is contained in:
parent
c092044954
commit
4dad99ec39
21
.github/workflows/test.yaml
vendored
21
.github/workflows/test.yaml
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user