diff --git a/.github/workflows/container-auto-update.yml b/.github/workflows/container-auto-update.yml index 76d2a62..3fd6018 100644 --- a/.github/workflows/container-auto-update.yml +++ b/.github/workflows/container-auto-update.yml @@ -73,6 +73,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 55e6740..4591b11 100644 --- a/.github/workflows/container-publish.yml +++ b/.github/workflows/container-publish.yml @@ -60,6 +60,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%% *}"