mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-02-06 23:35:28 +08:00
Merge pull request #50 from aimingmed/feature/backend-frontend-structure
ud
This commit is contained in:
commit
be9a142e12
6
.github/workflows/build_new.yml
vendored
6
.github/workflows/build_new.yml
vendored
@ -42,8 +42,6 @@ jobs:
|
|||||||
- IMAGE_NAME: backend-aimingmedai
|
- IMAGE_NAME: backend-aimingmedai
|
||||||
BUILD_CONTEXT: ./app/backend
|
BUILD_CONTEXT: ./app/backend
|
||||||
DOCKERFILE: ./app/backend/Dockerfile
|
DOCKERFILE: ./app/backend/Dockerfile
|
||||||
INTERMEDIATE_CONTAINER: builder
|
|
||||||
ARGS: "" # Default empty ARGS
|
|
||||||
|
|
||||||
# Call the reusable workflow
|
# Call the reusable workflow
|
||||||
uses: ./.github/workflows/template_build.yml # Path to the reusable workflow file
|
uses: ./.github/workflows/template_build.yml # Path to the reusable workflow file
|
||||||
@ -55,9 +53,5 @@ jobs:
|
|||||||
image_name: ${{ matrix.image_config.IMAGE_NAME }}
|
image_name: ${{ matrix.image_config.IMAGE_NAME }}
|
||||||
build_context: ${{ matrix.image_config.BUILD_CONTEXT }}
|
build_context: ${{ matrix.image_config.BUILD_CONTEXT }}
|
||||||
dockerfile: ${{ matrix.image_config.DOCKERFILE }}
|
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 }}
|
build_id: ${{ github.run_id }}
|
||||||
commit_sha: ${{ github.sha }}
|
commit_sha: ${{ github.sha }}
|
||||||
12
.github/workflows/template_build.yml
vendored
12
.github/workflows/template_build.yml
vendored
@ -22,14 +22,6 @@ on:
|
|||||||
dockerfile:
|
dockerfile:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
intermediate_container:
|
|
||||||
required: false # Optional input
|
|
||||||
type: string
|
|
||||||
default: ''
|
|
||||||
args:
|
|
||||||
required: false # Optional input
|
|
||||||
type: string
|
|
||||||
default: ''
|
|
||||||
build_id:
|
build_id:
|
||||||
required: true
|
required: true
|
||||||
type: string # Pass run_id as string
|
type: string # Pass run_id as string
|
||||||
@ -148,8 +140,8 @@ jobs:
|
|||||||
# Pushes the final tags (build id, commit sha, latest)
|
# Pushes the final tags (build id, commit sha, latest)
|
||||||
run: |
|
run: |
|
||||||
echo "Pushing final image tags..."
|
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_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_commit_sha }}
|
||||||
docker push ${{ steps.tags.outputs.image_repo_path }}:latest
|
docker push ${{ steps.tags.outputs.image_repo_path }}:latest
|
||||||
|
|
||||||
- name: Push Intermediate Image
|
- name: Push Intermediate Image
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user