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