From 82116b00b6199f63b61fce7e845fd3e2bda735e2 Mon Sep 17 00:00:00 2001 From: Gavin Bunney Date: Tue, 26 Nov 2024 14:44:33 -0800 Subject: [PATCH] Support arm64/amd64 for k3s --- .github/workflows/docker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 35bc4fc5..eb017776 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,4 +1,4 @@ -name: Cache images for tests in GHCR +name: Cache Images on: push: @@ -42,11 +42,11 @@ jobs: for image in ${IMAGES//,/ }; do new_image="ghcr.io/gavinbunney/terraform-provider-kubectl/testacc-$(echo $image | sed 's/\//-/')" echo "Caching $image as $new_image" - docker rmi $image + docker rmi $image --force docker pull $image --platform linux/amd64 docker tag $image $new_image-amd64 docker push $new_image-amd64 - docker rmi $image + docker rmi $image --force docker pull $image --platform linux/arm64 docker tag $image $new_image-arm64 docker push $new_image-arm64