Skip to content
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
21 changes: 12 additions & 9 deletions .github/actions/build/load-containers/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "Load Strimzi images"
description: "Load Strimzi images from Build workflow"
name: "Load images into registry"
description: "Load images from Build workflow into registry for e2e tests"

inputs:
architecture:
Expand All @@ -21,20 +21,23 @@ inputs:
description: "Container image tag - used for external registry"
required: false
default: "latest"
artifactSuffix:
description: "Suffix of archive with images"
required: true

runs:
using: "composite"
steps:
- name: "Untar the ${{ inputs.architecture }} containers"
- name: "Untar ${{ inputs.architecture }} containers"
shell: bash
run: tar -xvf containers-${{ inputs.architecture }}.tar
run: tar -xvf containers-${{ inputs.artifactSuffix }}-${{ inputs.architecture }}.tar

- name: "Delete the original archive with the ${{ inputs.architecture }} containers"
- name: "Delete the original archive with ${{ inputs.architecture }} containers"
shell: bash
run: rm containers-${{ inputs.architecture }}.tar
run: rm containers-${{ inputs.artifactSuffix }}-${{ inputs.architecture }}.tar

# This is for loading images into minikube registry
- name: Load & push Strimzi images into minikube registry
- name: Load & push images into minikube registry
shell: bash
if: ${{ contains(inputs.registry, 'minikube') }}
run: |
Expand All @@ -47,7 +50,7 @@ runs:
DOCKER_TAG: ${{ inputs.containerTag }}

# This is for loading images into kind registry
- name: Load & push Strimzi images into kind registry
- name: Load & push images into kind registry
shell: bash
if: ${{ contains(inputs.registry, 'kind') }}
run: |
Expand All @@ -59,7 +62,7 @@ runs:
DOCKER_TAG: ${{ inputs.containerTag }}

# This is for loading images into external registry
- name: Load & push Strimzi images external registry
- name: Load & push images into external registry
shell: bash
if: ${{ contains(inputs.registry, 'external') }}
run: |
Expand Down
Loading