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

update
This commit is contained in:
Hong Kai LEE 2025-04-15 15:23:14 +08:00 committed by GitHub
commit 3258d26782
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 7 deletions

View File

@ -42,7 +42,6 @@ jobs:
- IMAGE_NAME: backend-aimingmedai
BUILD_CONTEXT: ./app/backend
DOCKERFILE: ./app/backend/Dockerfile
PLATFORM: linux/amd64
INTERMEDIATE_CONTAINER: builder
ARGS: "" # Default empty ARGS
@ -55,7 +54,6 @@ jobs:
repo: https://github.com/aimingmed
image_name: ${{ matrix.image_config.IMAGE_NAME }}
build_context: ${{ matrix.image_config.BUILD_CONTEXT }}
platform: ${{ matrix.image_config.PLATFORM }}
dockerfile: ${{ matrix.image_config.DOCKERFILE }}
# Provide default empty strings if matrix values might be null/undefined
intermediate_container: ${{ matrix.image_config.INTERMEDIATE_CONTAINER || '' }}

View File

@ -19,10 +19,6 @@ on:
build_context:
required: true
type: string
platform:
required: false # Optional input
type: string
default: 'linux/amd64'
dockerfile:
required: true
type: string
@ -93,7 +89,7 @@ jobs:
continue-on-error: true # Mimics '|| true'
run: |
echo "Attempting to pull latest image for cache: ${{ steps.tags.outputs.image_repo_path }}:latest"
docker pull --platform linux/amd64 ${{ steps.tags.outputs.image_repo_path }}:latest
docker pull ${{ steps.tags.outputs.image_repo_path }}:latest
- name: Pull Intermediate Image for Cache
# Pulls the intermediate tag if specified and exists