my-django/.github/workflows/test.yaml
Kai b4b9cca357
Some checks failed
test / build (push) Successful in 3s
test / deploy (push) Failing after 1s
chore: modify test.yaml to list contents of /opt instead of /opt/docker for better visibility
2025-03-24 16:58:06 +08:00

31 lines
616 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: cd /opt/docker