diff --git a/.github/actions/build-image/action.yaml b/.github/actions/build-image/action.yaml index 1cec541b..094c1129 100644 --- a/.github/actions/build-image/action.yaml +++ b/.github/actions/build-image/action.yaml @@ -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 @@ -40,6 +43,6 @@ runs: run: >- ./earthly --push - +build + +docker-multiarch${{ inputs.tag_latest != 'false' && format('-latest --LATEST_IMAGE_NAME=ghcr.io/{0}:latest', github.repository) || '' }} --GIT_TAG=${{ inputs.image_tag }} --IMAGE_NAME=ghcr.io/${{ github.repository }}:${{ inputs.image_tag }} diff --git a/.github/workflows/on_release_published.yaml b/.github/workflows/on_release_published.yaml index 857e38c4..7d9e0328 100644 --- a/.github/workflows/on_release_published.yaml +++ b/.github/workflows/on_release_published.yaml @@ -19,4 +19,5 @@ jobs: - uses: ./.github/actions/build-image with: image_tag: ${{ github.ref_name }} + tag_latest: true token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.tool-versions b/.tool-versions index ac614c91..91d87df9 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,4 +1,4 @@ -earthly 0.7.23 +earthly 0.8.6 golang 1.21.6 golangci-lint 1.56.1 helm 3.12.2 diff --git a/Earthfile b/Earthfile index aa4faa21..f7e4ce40 100644 --- a/Earthfile +++ b/Earthfile @@ -17,9 +17,12 @@ ci-helm: BUILD +test-helm BUILD +release-helm -build: +docker-multiarch: BUILD --platform=linux/amd64 --platform=linux/arm64 +docker +docker-multiarch-latest: + BUILD --platform=linux/amd64 --platform=linux/arm64 +docker-latest + release: BUILD --platform=linux/amd64 --platform=linux/arm64 +docker BUILD +release-helm @@ -131,6 +134,13 @@ docker: ARG --required IMAGE_NAME SAVE IMAGE --push $IMAGE_NAME +docker-latest: + FROM +docker + + ARG --required LATEST_IMAGE_NAME + + SAVE IMAGE --push $LATEST_IMAGE_NAME + dlv: ARG --required GOLANG_VERSION diff --git a/charts/kubechecks/Chart.yaml b/charts/kubechecks/Chart.yaml index 2e1c7b31..8c74bfb0 100644 --- a/charts/kubechecks/Chart.yaml +++ b/charts/kubechecks/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v2 name: kubechecks description: A Helm chart for kubechecks -version: 0.4.3 -appVersion: "1.3.3" +version: 0.4.4 +appVersion: latest type: application maintainers: - name: zapier