Skip to content

Commit

Permalink
Makefile: allow to overwite podvm images tag
Browse files Browse the repository at this point in the history
Currently the podvm images are tagged with the versions.yaml hash. This
will allow one use an arbitrary tag by exporting the PODVM_TAG variable.

The podvm_builder, podvm_binaries and podvm workflows changed to get the
`image_tag` input (non-required).

Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
  • Loading branch information
wainersm committed Nov 15, 2023
1 parent a281187 commit 2a60369
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/podvm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
default: 'quay.io/confidential-containers'
required: false
type: string
image_tag:
default: ''
required: false
type: string

jobs:
build:
Expand Down Expand Up @@ -56,5 +60,6 @@ jobs:
PUSH: true
REGISTRY: ${{ inputs.registry }}
ARCH: ${{ matrix.arch }}
PODVM_TAG: ${{ inputs.image_tag }}
PODVM_DISTRO: ${{ matrix.os }}
CLOUD_PROVIDER: ${{ matrix.provider }}
5 changes: 5 additions & 0 deletions .github/workflows/podvm_binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
default: 'quay.io/confidential-containers'
required: false
type: string
image_tag:
default: ''
required: false
type: string

jobs:
build:
Expand Down Expand Up @@ -58,4 +62,5 @@ jobs:
PUSH: true
REGISTRY: ${{ inputs.registry }}
ARCH: ${{ matrix.arch }}
PODVM_TAG: ${{ inputs.image_tag }}
PODVM_DISTRO: ${{ matrix.os }}
5 changes: 5 additions & 0 deletions .github/workflows/podvm_builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
default: 'quay.io/confidential-containers'
required: false
type: string
image_tag:
default: ''
required: false
type: string

jobs:
build:
Expand Down Expand Up @@ -55,4 +59,5 @@ jobs:
env:
PUSH: true
REGISTRY: ${{ inputs.registry }}
PODVM_TAG: ${{ inputs.image_tag }}
PODVM_DISTRO: ${{ matrix.os }}
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,11 @@ endif
REGISTRY ?= quay.io/confidential-containers

PODVM_DISTRO ?= ubuntu
PODVM_TAG ?= $(VERSIONS_HASH)

PODVM_BUILDER_IMAGE ?= $(REGISTRY)/podvm-builder-$(PODVM_DISTRO):$(VERSIONS_HASH)
PODVM_BINARIES_IMAGE ?= $(REGISTRY)/podvm-binaries-$(PODVM_DISTRO)-$(ARCH):$(VERSIONS_HASH)
PODVM_IMAGE ?= $(REGISTRY)/podvm-$(or $(CLOUD_PROVIDER),generic)-$(PODVM_DISTRO)-$(ARCH):$(VERSIONS_HASH)
PODVM_BUILDER_IMAGE ?= $(REGISTRY)/podvm-builder-$(PODVM_DISTRO):$(PODVM_TAG)
PODVM_BINARIES_IMAGE ?= $(REGISTRY)/podvm-binaries-$(PODVM_DISTRO)-$(ARCH):$(PODVM_TAG)
PODVM_IMAGE ?= $(REGISTRY)/podvm-$(or $(CLOUD_PROVIDER),generic)-$(PODVM_DISTRO)-$(ARCH):$(PODVM_TAG)

PUSH ?= false
# If not pushing `--load` into the local docker cache
Expand Down

0 comments on commit 2a60369

Please sign in to comment.