Skip to content

Commit

Permalink
.github: workflows: Ensure that local base images are used
Browse files Browse the repository at this point in the history
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 <root@stephanos.io>
  • Loading branch information
stephanosio committed May 31, 2024
1 parent 6b0e26b commit 0b7bbf9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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' }}
Expand Down

0 comments on commit 0b7bbf9

Please sign in to comment.