1
0
Fork 0

Make sure oci-builder originates from current workflow run
Some checks failed
/ Release oci-builder (push) Has been skipped
/ Build oci-builder (push) Successful in 53s
/ Test oci-builder (push) Failing after 6s

This commit is contained in:
ver4a 2025-04-15 23:58:49 +02:00
parent b912195021
commit 7a119a9605
2 changed files with 12 additions and 0 deletions

View file

@ -23,6 +23,7 @@ jobs:
build-args: |
REGISTRY_DOMAIN=${{ vars.REGISTRY_DOMAIN }}
NAMESPACE=${{ vars.NAMESPACE }}
GITHUB_RUN_ID=${GITHUB_RUN_ID}
- name: 'Log in to registry'
uses: 'actions/podman-login@v1'
@ -45,6 +46,9 @@ jobs:
needs: 'build-oci-builder'
steps:
- name: Make sure oci-builder originates from current workflow run
run: diff <(echo $GITHUB_RUN_ID) /.github_run_id
- uses: actions/checkout@v4
- name: 'Build image'
@ -61,6 +65,7 @@ jobs:
build-args: |
REGISTRY_DOMAIN=${{ vars.REGISTRY_DOMAIN }}
NAMESPACE=${{ vars.NAMESPACE }}
GITHUB_RUN_ID=${GITHUB_RUN_ID}
release-oci-builder:
name: 'Release oci-builder'
@ -68,6 +73,9 @@ jobs:
needs: 'test-oci-builder'
steps:
- name: Make sure oci-builder originates from current workflow run
run: diff <(echo $GITHUB_RUN_ID) /.github_run_id
- name: 'Log in to registry'
uses: 'actions/podman-login@v1'
with:

View file

@ -2,6 +2,10 @@ FROM registry.fedoraproject.org/fedora-minimal:41
ARG RUNNER_VERSION=6.3.1
ARG GITHUB_RUN_ID
RUN echo $GITHUB_RUN_ID > /.github_run_id
RUN dnf5 -y --setopt install_weak_deps=false install podman buildah skopeo vim setpriv git nodejs22
ENV BUILDAH_ISOLATION=chroot