wip
Some checks failed
CI / build (push) Successful in 3m21s
CI / bump-infra (push) Failing after 0s

This commit is contained in:
Philip Peterson 2026-06-12 02:08:19 -07:00
parent 7807dcd642
commit 1f0da87771

View file

@ -16,6 +16,8 @@ jobs:
options: --privileged options: --privileged
env: env:
STORAGE_DRIVER: vfs STORAGE_DRIVER: vfs
outputs:
image_digest: ${{ steps.push.outputs.digest }}
steps: steps:
- name: Install git - name: Install git
run: dnf install -y --quiet git-core run: dnf install -y --quiet git-core
@ -34,9 +36,12 @@ jobs:
run: echo "$REGISTRY_PASSWORD" | podman login "$REGISTRY" -u "$REGISTRY_USERNAME" --password-stdin run: echo "$REGISTRY_PASSWORD" | podman login "$REGISTRY" -u "$REGISTRY_USERNAME" --password-stdin
- name: Build and push - name: Build and push
id: push
run: | run: |
podman build --layers=false -t "$IMAGE:${{ github.sha }}" . podman build --layers=false -t "$IMAGE:${{ github.sha }}" .
podman push "$IMAGE:${{ github.sha }}" podman push "$IMAGE:${{ github.sha }}" --digestfile /tmp/img-digest
DIGEST=$(grep -oE '[a-f0-9]{64}' /tmp/img-digest)
echo "digest=$DIGEST" >> $GITHUB_OUTPUT
bump-infra: bump-infra:
needs: build needs: build
@ -47,6 +52,7 @@ jobs:
FORGE_TOKEN: ${{ secrets.REGISTRY_PASSWORD }} FORGE_TOKEN: ${{ secrets.REGISTRY_PASSWORD }}
FORGE_USER: ${{ secrets.REGISTRY_USERNAME }} FORGE_USER: ${{ secrets.REGISTRY_USERNAME }}
SHA: ${{ github.sha }} SHA: ${{ github.sha }}
IMAGE_DIGEST: ${{ needs.build.outputs.image_digest }}
run: | run: |
git clone "https://${FORGE_USER}:${FORGE_TOKEN}@forge.quinefoundation.com/Cold-Air-Networks/petersweb-infra.git" infra git clone "https://${FORGE_USER}:${FORGE_TOKEN}@forge.quinefoundation.com/Cold-Air-Networks/petersweb-infra.git" infra
cd infra cd infra
@ -54,7 +60,7 @@ jobs:
BRANCH="bump-riverside-${SHA:0:7}" BRANCH="bump-riverside-${SHA:0:7}"
git checkout -b "$BRANCH" git checkout -b "$BRANCH"
./bump-riverside.sh "sha:$SHA" ./bump-riverside.sh "$IMAGE_DIGEST"
git config user.email "ci@quinefoundation.com" git config user.email "ci@quinefoundation.com"
git config user.name "CI" git config user.name "CI"