From ed35ab439c47a022a565bf39bed92e29aa4c4873 Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Wed, 26 Jul 2023 07:52:14 +0200 Subject: [PATCH] automated version tag setup --- .gitea/workflows/main.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index 5a358b7..6192aa4 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -6,7 +6,6 @@ on: env: # https://github.com/hadolint/hadolint/releases HADOLINT_VERSION: "2.12.0" - jobs: build: runs-on: docker @@ -21,8 +20,8 @@ jobs: --file Dockerfile \ --build-arg HADOLINT_VERSION=$HADOLINT_VERSION \ --tag gitea.sikorski.cloud/rogersik/hadolint:$HADOLINT_VERSION \ - --tag gitea.sikorski.cloud/rogersik/hadolint:"2" \ - --tag gitea.sikorski.cloud/rogersik/hadolint:"2.12" \ + --tag gitea.sikorski.cloud/rogersik/hadolint:${HADOLINT_VERSION%.*.*} \ + --tag gitea.sikorski.cloud/rogersik/hadolint:"${HADOLINT_VERSION%.*}" \ --tag gitea.sikorski.cloud/rogersik/hadolint:latest - name: Push docker image run: docker push gitea.sikorski.cloud/rogersik/hadolint --all-tags \ No newline at end of file