fix digest
This commit is contained in:
parent
1b6a71060a
commit
dee9a48b4a
1 changed files with 10 additions and 2 deletions
|
|
@ -37,10 +37,18 @@ jobs:
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
id: push
|
id: push
|
||||||
|
env:
|
||||||
|
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
|
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
podman build --layers=false -t "$IMAGE:${{ github.sha }}" .
|
podman build --layers=false -t "$IMAGE:${{ github.sha }}" .
|
||||||
podman push "$IMAGE:${{ github.sha }}" --digestfile /tmp/img-digest
|
podman push "$IMAGE:${{ github.sha }}"
|
||||||
DIGEST=$(grep -oE '[a-f0-9]{64}' /tmp/img-digest)
|
DIGEST=$(curl -sf \
|
||||||
|
-u "${REGISTRY_USERNAME}:${REGISTRY_PASSWORD}" \
|
||||||
|
-H "Accept: application/vnd.oci.image.manifest.v1+json" \
|
||||||
|
-I \
|
||||||
|
"https://${{ env.REGISTRY }}/v2/ironmagma/customer-riverside/manifests/${{ github.sha }}" \
|
||||||
|
| grep -i 'docker-content-digest:' | grep -oE '[a-f0-9]{64}')
|
||||||
echo "digest=$DIGEST" >> $GITHUB_OUTPUT
|
echo "digest=$DIGEST" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
bump-infra:
|
bump-infra:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue