From aacde8c0acc0d63aba2d8bd4431975456c94be81 Mon Sep 17 00:00:00 2001 From: Caleb Xavier Berger Date: Tue, 19 Jan 2021 02:45:06 -0500 Subject: [PATCH] Attempt to share images by pushing to local registry It looks like the docker-container buildx driver can't see host images, but if we put the image on the local registry things should (fingers crossed) work out OK. Load and push cannot happen at the same time --- .github/workflows/cross-compiling-docker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cross-compiling-docker.yml b/.github/workflows/cross-compiling-docker.yml index 29ed43748..05c28196b 100644 --- a/.github/workflows/cross-compiling-docker.yml +++ b/.github/workflows/cross-compiling-docker.yml @@ -33,8 +33,8 @@ jobs: with: context: . file: ./.github/workflows/Dockerfile.builder - load: true # load into local image store - tags: "${{ env.BUILDER_IMAGE_TAG }}" + push: true + tags: "localhost:5000/${{ env.BUILDER_IMAGE_TAG }}" build-args: "GOARCH=${{ env.GOARCH }}" # - run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - run: docker image inspect "${{ env.BUILDER_IMAGE_TAG }}" @@ -46,4 +46,4 @@ jobs: platforms: ${{ env.DOCKER_TARGET }} push: true tags: localhost:5000/matrixdotorg/dendrite-monolith:latest - build-args: "builder=${{ env.BUILDER_IMAGE_TAG }}\nDENDRITE_BINARY=dendrite-monolith-server" + build-args: "builder=localhost:5000/${{ env.BUILDER_IMAGE_TAG }}\nDENDRITE_BINARY=dendrite-monolith-server"