diff --git a/.github/workflows/container-version.yaml b/.github/workflows/container-version.yaml index 288ad56..662af96 100644 --- a/.github/workflows/container-version.yaml +++ b/.github/workflows/container-version.yaml @@ -52,6 +52,8 @@ jobs: - name: Build helmfile uses: docker/build-push-action@v2 with: + build-args: | + BASE_VERSION=${{ env.TAG }} builder: ${{ steps.buildx.outputs.name }} context: ./dockerfiles file: ./dockerfiles/Dockerfile-helmfile @@ -70,6 +72,8 @@ jobs: uses: docker/build-push-action@v2 with: builder: ${{ steps.buildx.outputs.name }} + build-args: | + BASE_VERSION=${{ env.TAG }} context: ./dockerfiles file: ./dockerfiles/Dockerfile-argo platforms: linux/amd64,linux/arm64 diff --git a/Cargo.lock b/Cargo.lock index 3f3e437..17ef53b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -46,7 +46,7 @@ checksum = "e9f73505338f7d905b19d18738976aae232eb46b8efc15554ffc56deb5d9ebe4" [[package]] name = "cdh" -version = "0.1.1" +version = "0.1.2" dependencies = [ "clap", "clap_complete", diff --git a/Cargo.toml b/Cargo.toml index 07768ea..3d17b49 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "cdh" authors = ["allanger "] -version = "0.1.1" +version = "0.1.2" description = "Your helm releases are outdated, aren't they? Now you can check" edition = "2021" diff --git a/dockerfiles/Dockerfile-helmfile b/dockerfiles/Dockerfile-helmfile index c32a215..1f165df 100644 --- a/dockerfiles/Dockerfile-helmfile +++ b/dockerfiles/Dockerfile-helmfile @@ -1,4 +1,5 @@ -FROM ghcr.io/allanger/dumb-downloader as builder +ARG BASE_VERSION=latest +FROM ghcr.io/allanger/dumb-downloader:${BASE_VERSION} as builder RUN apt-get update -y && apt-get install tar -y ARG HELM_VERSION=v3.10.3 ARG HELMFILE_VERSION=0.150.0