my-django/.github/workflows/test.yaml
Kai 29404d88c9
All checks were successful
test / build (push) Successful in 3s
test / deploy (push) Successful in 2s
fix: correct deployment command in test.yaml to ensure proper directory navigation
2025-03-24 16:59:13 +08:00

31 lines
624 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 my-django:latest .
continue-on-error: true
deploy:
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: exit && cd /opt/docker