my-django/.github/workflows/test.yaml
Kai d3c0e1c58a
Some checks failed
test / build (push) Successful in 6s
test / deploy (push) Failing after 2s
CI
2025-03-24 11:16:50 +08:00

24 lines
547 B
YAML

name: test
on:
push:
branches:
- release
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: http://gitea.xkkxyy.com/actions/checkout@main
- name: Docker Build and Push
run: |
docker build -t gitea.xkkxyy.com/Kai/my-django:latest .
continue-on-error: true
deploy:
runs-on: ubuntu-latest
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