Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github: workflows: Ensure that local base images are used #190

Merged
merged 3 commits into from
May 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ jobs:
builder: zephyr-runner-v2-linux-arm64-4xlarge

steps:
- name: Configure temporary directory
run: |
mkdir -p /__w/tmp
echo "TMPDIR=/__w/tmp" >> $GITHUB_ENV

- name: Configure container storage
run: |
sed -i 's/graphroot = .*/graphroot = "\/__w\/container_storage"/' /etc/containers/storage.conf
Expand Down Expand Up @@ -132,6 +137,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 +149,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 Expand Up @@ -171,6 +180,16 @@ jobs:
if: ${{ github.event_name != 'pull_request' }}

steps:
- name: Configure temporary directory
run: |
mkdir -p /__w/tmp
echo "TMPDIR=/__w/tmp" >> $GITHUB_ENV

- name: Configure container storage
run: |
sed -i 's/graphroot = .*/graphroot = "\/__w\/container_storage"/' /etc/containers/storage.conf
mkdir -p /__w/container_storage

- name: Login to DockerHub
if: ${{ github.event_name != 'pull_request' }}
uses: redhat-actions/podman-login@v1
Expand Down