From 0b7bbf9c3a90b46676d13f5290112aac23240c06 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Fri, 31 May 2024 17:40:54 +0900 Subject: [PATCH] .github: workflows: Ensure that local base images are used This commit adds the `--pull-never` flag to the derivative image builds in order to ensure that the locally built base image is used instead of a remote pulled one. Without this flag, buildah may pull the remote tag even if a local copy with the same tag name exists. Signed-off-by: Stephanos Ioannidis --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 079c45a..1a62329 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -132,6 +132,8 @@ jobs: labels: ${{ steps.meta_ci.outputs.labels }} build-args: | BASE_IMAGE=${{ env.GHCR_BASE }}/${{ env.BASE_IMAGE_NAME }}:${{ steps.meta_base.outputs.version }} + extra-args: | + --pull-never - name: Build Developer image uses: redhat-actions/buildah-build@v2 @@ -142,6 +144,8 @@ jobs: labels: ${{ steps.meta_developer.outputs.labels }} build-args: | BASE_IMAGE=${{ env.GHCR_BASE }}/${{ env.CI_IMAGE_NAME }}:${{ steps.meta_ci.outputs.version }} + extra-args: | + --pull-never - name: Push base image if: ${{ github.event_name != 'pull_request' }}