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

ud
This commit is contained in:
Hong Kai LEE 2025-04-15 16:06:21 +08:00 committed by GitHub
commit be9a142e12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 16 deletions

View File

@ -42,8 +42,6 @@ jobs:
- IMAGE_NAME: backend-aimingmedai
BUILD_CONTEXT: ./app/backend
DOCKERFILE: ./app/backend/Dockerfile
INTERMEDIATE_CONTAINER: builder
ARGS: "" # Default empty ARGS
# Call the reusable workflow
uses: ./.github/workflows/template_build.yml # Path to the reusable workflow file
@ -55,9 +53,5 @@ jobs:
image_name: ${{ matrix.image_config.IMAGE_NAME }}
build_context: ${{ matrix.image_config.BUILD_CONTEXT }}
dockerfile: ${{ matrix.image_config.DOCKERFILE }}
# Provide default empty strings if matrix values might be null/undefined
intermediate_container: ${{ matrix.image_config.INTERMEDIATE_CONTAINER || '' }}
args: ${{ matrix.image_config.ARGS || '' }}
# Pass run-specific context needed for tagging
build_id: ${{ github.run_id }}
commit_sha: ${{ github.sha }}

View File

@ -22,14 +22,6 @@ on:
dockerfile:
required: true
type: string
intermediate_container:
required: false # Optional input
type: string
default: ''
args:
required: false # Optional input
type: string
default: ''
build_id:
required: true
type: string # Pass run_id as string
@ -148,8 +140,8 @@ jobs:
# Pushes the final tags (build id, commit sha, latest)
run: |
echo "Pushing final image tags..."
docker push ${{ steps.tags.outputs.image_repo_path }}:${{ steps.tags.outputs.tag_build_id }}
docker push ${{ steps.tags.outputs.image_repo_path }}:${{ steps.tags.outputs.tag_commit_sha }}
# docker push ${{ steps.tags.outputs.image_repo_path }}:${{ steps.tags.outputs.tag_build_id }}
# docker push ${{ steps.tags.outputs.image_repo_path }}:${{ steps.tags.outputs.tag_commit_sha }}
docker push ${{ steps.tags.outputs.image_repo_path }}:latest
- name: Push Intermediate Image