Merge pull request #59 from aimingmed/feature/backend-frontend-structure

debug
This commit is contained in:
Hong Kai LEE 2025-04-16 16:49:28 +08:00 committed by GitHub
commit d412fd764d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 28 additions and 7 deletions

View File

@ -59,7 +59,7 @@ jobs:
# TEST Stage equivalent
test:
name: Run Tests
name: Run Integration Tests
needs: build # Ensure this job runs after the build job
# Define necessary permissions if needed (e.g., for GitHub Packages)
permissions:

12
.github/workflows/debug_env.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: Debug Environment
on:
workflow_dispatch: # Allows manual triggering
jobs:
debug:
runs-on: ubuntu-latest
steps:
- name: Print GITHUB_REPOSITORY
run: |
echo "GITHUB_REPOSITORY: ${{ github.repository }}"

View File

@ -2,9 +2,6 @@ name: Reusable Docker Build Template
# Define inputs expected from the calling workflow
on:
push:
branches:
- develop
workflow_call:
inputs:
project_name:
@ -42,6 +39,7 @@ jobs:
uses: actions/checkout@v3
with:
ref: develop # Use the branch specified in the calling workflow
- name: Set up Docker Buildx
# Recommended for improved build features and caching
uses: docker/setup-buildx-action@v3
@ -56,7 +54,6 @@ jobs:
run: |
echo "Pruning Docker system..."
docker system prune -a -f --volumes
# Comment from ADO: we clear the cache to prevent it from filling up...
- name: Remove unnecessary files
run: |

View File

@ -49,16 +49,28 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4
uses: actions/checkout@v3
with:
ref: develop
fetch-depth: 1
- name: Log in to GitHub Packages
run: echo ${GITHUB_TOKEN} | docker login -u ${GITHUB_ACTOR} --password-stdin ghcr.io
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Nuke Docker Cache
# Equivalent to CmdLine@2 Nuke Cache
run: |
echo "Pruning Docker system..."
docker system prune -a -f --volumes
- name: Remove unnecessary files
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Create Docker-Compose File from Inputs
id: create_compose
shell: pwsh