Skip to content

Commit

Permalink
chore: support image load
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Klick <[email protected]>
  • Loading branch information
nathanklick committed Jul 31, 2024
1 parent d45f248 commit 6b2a2a5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/zxc-build-legacy-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,6 @@ jobs:
build-legacy-images:
name: ${{ inputs.custom-job-label || 'Build' }}
runs-on: [self-hosted, Linux, medium, ephemeral]
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
- name: Harden Runner
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
Expand Down Expand Up @@ -160,30 +155,36 @@ jobs:
id: registry
run: |
DOCKER_REGISTRY_PREFIX="ghcr.io/${{ github.repository }}"
IMG_RESULT="push"
if [[ "${{ inputs.dry-run-enabled }}" == "true" ]]; then
DOCKER_REGISTRY_PREFIX="localhost:5000"
DOCKER_REGISTRY_PREFIX="local"
IMG_RESULT="load"
fi
echo "prefix=${DOCKER_REGISTRY_PREFIX}" >>"${GITHUB_OUTPUT}"
echo "operation=${IMG_RESULT}" >>"${GITHUB_OUTPUT}"
- name: Build Default Image
env:
DOCKER_USER: ${{ steps.registry.outputs.prefix }}
IMG_RESULT: ${{ steps.registry.outputs.operation }}
working-directory: legacy/runner
if: ${{ inputs.build-default-image }}
run: make docker-buildx-default

- name: Build DinD Image
env:
DOCKER_USER: ${{ steps.registry.outputs.prefix }}
IMG_RESULT: ${{ steps.registry.outputs.operation }}
working-directory: legacy/runner
if: ${{ inputs.build-dind-image }}
run: make docker-buildx-dind

- name: Build DinD Rootless Image
env:
DOCKER_USER: ${{ steps.registry.outputs.prefix }}
IMG_RESULT: ${{ steps.registry.outputs.operation }}
working-directory: legacy/runner
if: ${{ inputs.build-dind-rootless-image }}
run: make docker-buildx-dind-rootless

0 comments on commit 6b2a2a5

Please sign in to comment.