Skip to content

Commit 0b7bbf9

Browse files
committed
.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 <[email protected]>
1 parent 6b0e26b commit 0b7bbf9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ jobs:
132132
labels: ${{ steps.meta_ci.outputs.labels }}
133133
build-args: |
134134
BASE_IMAGE=${{ env.GHCR_BASE }}/${{ env.BASE_IMAGE_NAME }}:${{ steps.meta_base.outputs.version }}
135+
extra-args: |
136+
--pull-never
135137
136138
- name: Build Developer image
137139
uses: redhat-actions/buildah-build@v2
@@ -142,6 +144,8 @@ jobs:
142144
labels: ${{ steps.meta_developer.outputs.labels }}
143145
build-args: |
144146
BASE_IMAGE=${{ env.GHCR_BASE }}/${{ env.CI_IMAGE_NAME }}:${{ steps.meta_ci.outputs.version }}
147+
extra-args: |
148+
--pull-never
145149
146150
- name: Push base image
147151
if: ${{ github.event_name != 'pull_request' }}

0 commit comments

Comments
 (0)