fix dev image compilation

This commit is contained in:
Alberto Xamin 2021-06-29 14:51:28 +02:00
parent 9ca62bd5ba
commit bae36ccb35
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -23,12 +23,22 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-buildx- ${{ runner.os }}-buildx-
- -
name: Docker Buildx (build amd64 arm64) name: Docker Buildx (build amd64)
run: | run: |
docker buildx build \ docker buildx build \
--cache-from "type=local,src=/tmp/.buildx-cache" \ --cache-from "type=local,src=/tmp/.buildx-cache" \
--cache-to "type=local,dest=/tmp/.buildx-cache" \ --cache-to "type=local,dest=/tmp/.buildx-cache" \
--platform linux/amd64,linux/arm64 \ --platform linux/amd64 \
--output "type=image,push=false" \
--tag albertoxamin/bang:dev \
--file ./Dockerfile ./
-
name: Docker Buildx (build arm64)
run: |
docker buildx build \
--cache-from "type=local,src=/tmp/.buildx-cache" \
--cache-to "type=local,dest=/tmp/.buildx-cache" \
--platform linux/arm64 \
--output "type=image,push=false" \ --output "type=image,push=false" \
--tag albertoxamin/bang:dev \ --tag albertoxamin/bang:dev \
--file ./Dockerfile ./ --file ./Dockerfile ./