Skip to content

Commit

Permalink
use a 'latest' tag for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
djeebus committed Mar 22, 2024
1 parent 946b84b commit 17c3f0c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/actions/build-image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ inputs:
image_tag:
description: The image tag
required: true
tag_latest:
description: Tag latest as well as the provided tag
default: "false"
token:
description: Github token
required: true
Expand Down Expand Up @@ -42,4 +45,4 @@ runs:
--push
+build
--GIT_TAG=${{ inputs.image_tag }}
--IMAGE_NAME=ghcr.io/${{ github.repository }}:${{ inputs.image_tag }}
--IMAGE_NAME="ghcr.io/${{ github.repository }}:${{ inputs.image_tag }} ${{ inputs.tag_latest != 'false' && format('ghcr.io/{0}:latest', github.repository) || '' }}"
1 change: 1 addition & 0 deletions .github/workflows/on_release_published.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ jobs:
- uses: ./.github/actions/build-image
with:
image_tag: ${{ github.ref_name }}
tag_latest: true
token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 1 addition & 2 deletions charts/kubechecks/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
apiVersion: v2
name: kubechecks
description: A Helm chart for kubechecks
version: 0.4.3
appVersion: "1.3.3"
version: 0.4.4
type: application
maintainers:
- name: zapier
2 changes: 1 addition & 1 deletion charts/kubechecks/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ deployment:
image:
pullPolicy: Always
name: "ghcr.io/zapier/kubechecks"
tag: "" # Defaults to the .Chart.AppVersion
tag: "latest" # Defaults to the .Chart.AppVersion

imagePullSecrets: []

Expand Down

0 comments on commit 17c3f0c

Please sign in to comment.