Make sure oci-builder originates from current workflow run
This commit is contained in:
parent
b912195021
commit
7a119a9605
2 changed files with 12 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue