Force HTTPS by specifying port 443 in skopeo destination URL
Some checks failed
Build Container / build (push) Failing after 12s
Some checks failed
Build Container / build (push) Failing after 12s
This commit is contained in:
parent
af3536bc17
commit
ed8fbdc7ea
1 changed files with 9 additions and 2 deletions
|
|
@ -125,17 +125,24 @@ runs:
|
||||||
echo '$INDRI_IP ${{ inputs.registry }}' >> /etc/hosts
|
echo '$INDRI_IP ${{ inputs.registry }}' >> /etc/hosts
|
||||||
echo 'Added /etc/hosts entry: $INDRI_IP ${{ inputs.registry }}'
|
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...'
|
echo 'Pushing version tag...'
|
||||||
skopeo copy \
|
skopeo copy \
|
||||||
--dest-tls-verify=false \
|
--dest-tls-verify=false \
|
||||||
docker-archive:/tmp/image.tar \
|
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...'
|
echo 'Pushing SHA tag...'
|
||||||
skopeo copy \
|
skopeo copy \
|
||||||
--dest-tls-verify=false \
|
--dest-tls-verify=false \
|
||||||
docker-archive:/tmp/image.tar \
|
docker-archive:/tmp/image.tar \
|
||||||
docker://${{ inputs.registry }}/${{ inputs.image_name }}:${{ github.sha }}
|
docker://${{ inputs.registry }}:443/${{ inputs.image_name }}:${{ github.sha }}
|
||||||
"
|
"
|
||||||
|
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue