mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-02-06 23:35:28 +08:00
update docker platfor
This commit is contained in:
parent
83ee012951
commit
41dc9c583f
2
.github/workflows/build_new.yml
vendored
2
.github/workflows/build_new.yml
vendored
@ -42,6 +42,7 @@ 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
|
||||||
|
PLATFORM: linux/amd64
|
||||||
INTERMEDIATE_CONTAINER: builder
|
INTERMEDIATE_CONTAINER: builder
|
||||||
ARGS: "" # Default empty ARGS
|
ARGS: "" # Default empty ARGS
|
||||||
|
|
||||||
@ -54,6 +55,7 @@ jobs:
|
|||||||
repo: https://github.com/aimingmed
|
repo: https://github.com/aimingmed
|
||||||
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 }}
|
||||||
|
platform: ${{ matrix.image_config.PLATFORM }}
|
||||||
dockerfile: ${{ matrix.image_config.DOCKERFILE }}
|
dockerfile: ${{ matrix.image_config.DOCKERFILE }}
|
||||||
# Provide default empty strings if matrix values might be null/undefined
|
# Provide default empty strings if matrix values might be null/undefined
|
||||||
intermediate_container: ${{ matrix.image_config.INTERMEDIATE_CONTAINER || '' }}
|
intermediate_container: ${{ matrix.image_config.INTERMEDIATE_CONTAINER || '' }}
|
||||||
|
|||||||
6
.github/workflows/template_build.yml
vendored
6
.github/workflows/template_build.yml
vendored
@ -19,6 +19,10 @@ on:
|
|||||||
build_context:
|
build_context:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
platform:
|
||||||
|
required: false # Optional input
|
||||||
|
type: string
|
||||||
|
default: 'linux/amd64'
|
||||||
dockerfile:
|
dockerfile:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -89,7 +93,7 @@ jobs:
|
|||||||
continue-on-error: true # Mimics '|| true'
|
continue-on-error: true # Mimics '|| true'
|
||||||
run: |
|
run: |
|
||||||
echo "Attempting to pull latest image for cache: ${{ steps.tags.outputs.image_repo_path }}:latest"
|
echo "Attempting to pull latest image for cache: ${{ steps.tags.outputs.image_repo_path }}:latest"
|
||||||
docker pull ${{ steps.tags.outputs.image_repo_path }}:latest
|
docker pull --platform linux/amd64 ${{ steps.tags.outputs.image_repo_path }}:latest
|
||||||
|
|
||||||
- name: Pull Intermediate Image for Cache
|
- name: Pull Intermediate Image for Cache
|
||||||
# Pulls the intermediate tag if specified and exists
|
# Pulls the intermediate tag if specified and exists
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user