mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-01-19 13:23:23 +08:00
debug
This commit is contained in:
parent
28791d0bca
commit
d43d716bef
2
.github/workflows/build_new.yml
vendored
2
.github/workflows/build_new.yml
vendored
@ -59,7 +59,7 @@ jobs:
|
|||||||
|
|
||||||
# TEST Stage equivalent
|
# TEST Stage equivalent
|
||||||
test:
|
test:
|
||||||
name: Run Tests
|
name: Run Integration Tests
|
||||||
needs: build # Ensure this job runs after the build job
|
needs: build # Ensure this job runs after the build job
|
||||||
# Define necessary permissions if needed (e.g., for GitHub Packages)
|
# Define necessary permissions if needed (e.g., for GitHub Packages)
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
12
.github/workflows/debug_env.yml
vendored
Normal file
12
.github/workflows/debug_env.yml
vendored
Normal 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 }}"
|
||||||
5
.github/workflows/template_build.yml
vendored
5
.github/workflows/template_build.yml
vendored
@ -2,9 +2,6 @@ name: Reusable Docker Build Template
|
|||||||
|
|
||||||
# Define inputs expected from the calling workflow
|
# Define inputs expected from the calling workflow
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- develop
|
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
project_name:
|
project_name:
|
||||||
@ -42,6 +39,7 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: develop # Use the branch specified in the calling workflow
|
ref: develop # Use the branch specified in the calling workflow
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
# Recommended for improved build features and caching
|
# Recommended for improved build features and caching
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
@ -56,7 +54,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Pruning Docker system..."
|
echo "Pruning Docker system..."
|
||||||
docker system prune -a -f --volumes
|
docker system prune -a -f --volumes
|
||||||
# Comment from ADO: we clear the cache to prevent it from filling up...
|
|
||||||
|
|
||||||
- name: Remove unnecessary files
|
- name: Remove unnecessary files
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
16
.github/workflows/template_test.yml
vendored
16
.github/workflows/template_test.yml
vendored
@ -49,16 +49,28 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: develop
|
ref: develop
|
||||||
fetch-depth: 1
|
|
||||||
|
|
||||||
- name: Log in to GitHub Packages
|
- name: Log in to GitHub Packages
|
||||||
run: echo ${GITHUB_TOKEN} | docker login -u ${GITHUB_ACTOR} --password-stdin ghcr.io
|
run: echo ${GITHUB_TOKEN} | docker login -u ${GITHUB_ACTOR} --password-stdin ghcr.io
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
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
|
- name: Create Docker-Compose File from Inputs
|
||||||
id: create_compose
|
id: create_compose
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user