Skip to content

Commit

Permalink
build(ci): tag kanisterio/build image as latest or dev_latest tag (#2754
Browse files Browse the repository at this point in the history
)

Currently we have to update the build image tag every time we build a new one.
This is because we sometimes build "dev" versions of this image for testing.

Tagging 'latest' and 'dev_latest' makes it more convenient to use.
  • Loading branch information
hairyhum authored Mar 20, 2024
1 parent a5c3588 commit 35043cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/kanister-image-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ on:
description: 'Image tag in the format vx.x.x'
required: true
type: string
latest_tag:
description: 'Tag image as latest or dev_latest'
required: true
default: dev_latest
type: choice
options:
- latest
- dev_latest

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -52,6 +60,7 @@ jobs:
type=sha
{{date 'YYYY.MM.DD-HHmm'}}
${{ inputs.tag }}
${{ inputs.latest_tag }}
- name: Login to GHCR
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
with:
Expand Down

0 comments on commit 35043cf

Please sign in to comment.