diff --git a/.github/workflows/container-auto-update.yml b/.github/workflows/container-auto-update.yml index 6f28dd7..28bf636 100644 --- a/.github/workflows/container-auto-update.yml +++ b/.github/workflows/container-auto-update.yml @@ -69,6 +69,12 @@ jobs: run: | buildah unshare ./build.sh + # Workaround for https://github.com/redhat-actions/push-to-registry/issues/66 + - name: Delete base image + if: ${{ env.BUILD_ACTION != '' }} + run: | + podman rmi "$(. ./container.env ; echo "$BASE_IMAGE")" + - name: Container image metadata run: | "$CI_TOOLS_PATH/containers/get-metadata.sh" "$REGISTRY/$OWNER" "$IMAGE:latest" diff --git a/.github/workflows/container-publish.yml b/.github/workflows/container-publish.yml index 557aaf5..ea574b9 100644 --- a/.github/workflows/container-publish.yml +++ b/.github/workflows/container-publish.yml @@ -56,6 +56,11 @@ jobs: run: | buildah unshare ./build.sh + # Workaround for https://github.com/redhat-actions/push-to-registry/issues/66 + - name: Delete base image + run: | + podman rmi "$(. ./container.env ; echo "$BASE_IMAGE")" + - name: Container image metadata run: | podman image inspect "localhost/$IMAGE:${TAGS%% *}"