automated version tag setup
All checks were successful
/ build (push) Successful in 2s

This commit is contained in:
Roger Sikorski 2023-07-26 07:52:14 +02:00
parent b2b3ebb690
commit ed35ab439c
Signed by: RogerSik
GPG Key ID: 207958C85208EAC4

View File

@ -6,7 +6,6 @@ on:
env: env:
# https://github.com/hadolint/hadolint/releases # https://github.com/hadolint/hadolint/releases
HADOLINT_VERSION: "2.12.0" HADOLINT_VERSION: "2.12.0"
jobs: jobs:
build: build:
runs-on: docker runs-on: docker
@ -21,8 +20,8 @@ jobs:
--file Dockerfile \ --file Dockerfile \
--build-arg HADOLINT_VERSION=$HADOLINT_VERSION \ --build-arg HADOLINT_VERSION=$HADOLINT_VERSION \
--tag gitea.sikorski.cloud/rogersik/hadolint:$HADOLINT_VERSION \ --tag gitea.sikorski.cloud/rogersik/hadolint:$HADOLINT_VERSION \
--tag gitea.sikorski.cloud/rogersik/hadolint:"2" \ --tag gitea.sikorski.cloud/rogersik/hadolint:${HADOLINT_VERSION%.*.*} \
--tag gitea.sikorski.cloud/rogersik/hadolint:"2.12" \ --tag gitea.sikorski.cloud/rogersik/hadolint:"${HADOLINT_VERSION%.*}" \
--tag gitea.sikorski.cloud/rogersik/hadolint:latest --tag gitea.sikorski.cloud/rogersik/hadolint:latest
- name: Push docker image - name: Push docker image
run: docker push gitea.sikorski.cloud/rogersik/hadolint --all-tags run: docker push gitea.sikorski.cloud/rogersik/hadolint --all-tags