try multiplatfrom build
This commit is contained in:
4
.github/workflows/build.yaml
vendored
4
.github/workflows/build.yaml
vendored
@@ -47,9 +47,9 @@ jobs:
|
|||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run: |
|
run: |
|
||||||
if [ "$NO_CACHE" == "true" ]; then
|
if [ "$NO_CACHE" == "true" ]; then
|
||||||
docker build -t cr.yandex/$CR_REGISTRY/$CR_REPO:${IMAGE_TAG::7} --no-cache --ssh default .
|
docker buildx build --platform linux/amd64,linux/arm64 -t cr.yandex/$CR_REGISTRY/$CR_REPO:${IMAGE_TAG::7} --no-cache --ssh default .
|
||||||
else
|
else
|
||||||
docker build -t cr.yandex/$CR_REGISTRY/$CR_REPO:${IMAGE_TAG::7} --ssh default .
|
docker buildx build --platform linux/amd64,linux/arm64 -t cr.yandex/$CR_REGISTRY/$CR_REPO:${IMAGE_TAG::7} --ssh default .
|
||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
NO_CACHE: ${{ inputs.force_build || 'false' }}
|
NO_CACHE: ${{ inputs.force_build || 'false' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user