Compare commits
2 commits
1b6a71060a
...
d491f9050d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d491f9050d | ||
|
|
dee9a48b4a |
1 changed files with 11 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: forge.quinefoundation.com
|
REGISTRY: forge.quinefoundation.com
|
||||||
IMAGE: forge.quinefoundation.com/ironmagma/customer-riverside
|
IMAGE: forge.quinefoundation.com/cold-air-networks/customer-riverside
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -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/cold-air-networks/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