my-django/.github/workflows/test.yaml
Kai d8b0439057
Some checks failed
test / build (push) Failing after 0s
test / deploy (push) Has been skipped
chore: add debug steps to test.yaml to display current directory and system information for enhanced troubleshooting
2025-03-24 18:11:18 +08:00

38 lines
782 B
YAML

name: test
on:
push:
branches:
- release
jobs:
build:
runs-on: self-hosted
steps:
- name: Debug directory
run: |
echo "Current directory:"
pwd
lscpu
echo "Listing /opt/docker:"
ls -l /opt
- 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: Debug directory
run: |
echo "Current directory:"
pwd
lscpu
echo "Listing /opt/docker:"
ls -l /opt
- name: Deploy to Test
run: cd /opt/docker