my-django/.github/workflows/test.yaml
Kai 8a11774d98
Some checks failed
test / build (push) Successful in 4s
test / deploy (push) Failing after 0s
chore: switch runner type in test.yaml from ubuntu-latest to self-hosted for both build and deploy jobs
2025-03-25 15:58:20 +08:00

25 lines
531 B
YAML

name: test
on:
push:
branches:
- release
jobs:
build:
runs-on: self-hosted
steps:
- name: Checkout Code
uses: http://gitea.xkkxyy.com/actions/checkout@main
- name: Docker Build and Push
run: |
docker build -t my-django:latest .
continue-on-error: true
deploy:
runs-on: self-hosted
needs: build
steps:
- name: Deploy to Test
run: cd /opt/docker && docker compose -f docker-compose.yaml -f my-django/docker-compose.yaml up -d