chore: switch runner type in test.yaml from ubuntu-latest to self-hosted for both build and deploy jobs
This commit is contained in:
parent
ac88526613
commit
8a11774d98
5
.github/workflows/test.yaml
vendored
5
.github/workflows/test.yaml
vendored
@ -6,7 +6,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: http://gitea.xkkxyy.com/actions/checkout@main
|
uses: http://gitea.xkkxyy.com/actions/checkout@main
|
||||||
@ -16,10 +16,9 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: self-hosted
|
||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy to Test
|
- name: Deploy to Test
|
||||||
run: cd /opt/docker && docker compose -f docker-compose.yaml -f my-django/docker-compose.yaml up -d
|
run: cd /opt/docker && docker compose -f docker-compose.yaml -f my-django/docker-compose.yaml up -d
|
||||||
# run: echo "1111111111111111" && exit && echo "aaaaaaaaaaaaaaaa"
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user