my-django/.github/workflows/test.yaml
Kai 0677c36d13
Some checks failed
test / build (push) Failing after 0s
test / deploy (push) Has been skipped
chore: remove debug steps from test.yaml to streamline workflow and reduce clutter
2025-03-24 18:33:27 +08:00

31 lines
612 B
YAML

name: test
on:
push:
branches:
- release
jobs:
build:
runs-on: self-hosted
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: 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