bcgov / quickstart-openshift

QuickStart template targeted for OpenShift.
https://quickstart-openshift-test-frontend.apps.silver.devops.gov.bc.ca/
Apache License 2.0
29 stars 4 forks source link

feat(ci): handle annoying manifest unknown errors in GHCR #1886

Closed DerekRoberts closed 6 months ago

DerekRoberts commented 7 months ago

GHCR kicks up manifest unknown errors when images become corrupted or otherwise fail. Since we can check for this error it might make sense to silently handle it with a new build.

Fail here

Run DIGEST=$(docker manifest inspect ghcr.io/bcgov/nr-omrr-transparency/frontend:44 | jq '.manifests[0].digest')
  DIGEST=$(docker manifest inspect ghcr.io/bcgov/nr-omrr-transparency/frontend:44 | jq '.manifests[0].digest')
  echo "digest=${DIGEST}" >> $GITHUB_OUTPUT
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
manifest unknown
Error: Process completed with exit code 1.

https://github.com/bcgov/nr-omrr-transparency/actions/runs/8349661334/job/22854315329?pr=44

DerekRoberts commented 6 months ago

Duplicate of https://github.com/bcgov/quickstart-openshift/issues/1886.