my-django/.github/workflows/test.yaml
Kai c092044954
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, Node PATH, and Node version for improved troubleshooting
2025-03-24 18:58:42 +08:00

39 lines
805 B
YAML

name: test
on:
push:
branches:
- release
jobs:
build:
runs-on: self-hosted
steps:
- name: Debug directory
run: |
echo "Current directory:"
pwd
echo "Node PATH:"
which node
echo "Node Version:"
node -v
- 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