mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-01-19 21:37:31 +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
|
||||
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 }}
|
||||
12
.github/workflows/template_build.yml
vendored
12
.github/workflows/template_build.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user