From ed8fbdc7ea7f56ea428ecbdf1ca9ec11e1d3e8d6 Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Sat, 24 Jan 2026 20:12:54 -0800 Subject: [PATCH] Force HTTPS by specifying port 443 in skopeo destination URL --- .forgejo/actions/build-push-image/action.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.forgejo/actions/build-push-image/action.yaml b/.forgejo/actions/build-push-image/action.yaml index 083fb99..dec4851 100644 --- a/.forgejo/actions/build-push-image/action.yaml +++ b/.forgejo/actions/build-push-image/action.yaml @@ -125,17 +125,24 @@ runs: echo '$INDRI_IP ${{ inputs.registry }}' >> /etc/hosts echo 'Added /etc/hosts entry: $INDRI_IP ${{ inputs.registry }}' + # Configure skopeo to use HTTPS for our registry (skip cert verification) + mkdir -p /etc/containers + echo '[[registry]]' > /etc/containers/registries.conf + echo 'location = \"${{ inputs.registry }}\"' >> /etc/containers/registries.conf + echo 'insecure = true' >> /etc/containers/registries.conf + cat /etc/containers/registries.conf + echo 'Pushing version tag...' skopeo copy \ --dest-tls-verify=false \ docker-archive:/tmp/image.tar \ - docker://${{ inputs.registry }}/${{ inputs.image_name }}:${{ inputs.version }} + docker://${{ inputs.registry }}:443/${{ inputs.image_name }}:${{ inputs.version }} echo 'Pushing SHA tag...' skopeo copy \ --dest-tls-verify=false \ docker-archive:/tmp/image.tar \ - docker://${{ inputs.registry }}/${{ inputs.image_name }}:${{ github.sha }} + docker://${{ inputs.registry }}:443/${{ inputs.image_name }}:${{ github.sha }} " - name: Cleanup