From 6c63324f8a07bc8f641bb082accbbe61f816be72 Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Wed, 26 Jul 2023 07:44:37 +0200 Subject: [PATCH] docker build arg added --- .gitea/workflows/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index 7fa6e49..13645dd 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -19,9 +19,10 @@ jobs: docker build . \ --cache-from registry.sikorski.cloud/rogersik/hadolint:latest \ --file Dockerfile \ - --tag registry.sikorski.cloud/rogersik/hadolint:$HADOLINT_VERSION - --tag registry.sikorski.cloud/rogersik/hadolint:"2" - --tag registry.sikorski.cloud/rogersik/hadolint:"2.12" + --build-arg HADOLINT_VERSION=$HADOLINT_VERSION \ + --tag registry.sikorski.cloud/rogersik/hadolint:$HADOLINT_VERSION \ + --tag registry.sikorski.cloud/rogersik/hadolint:"2" \ + --tag registry.sikorski.cloud/rogersik/hadolint:"2.12" \ --tag registry.sikorski.cloud/rogersik/hadolint:latest - name: Push docker image run: docker push registry.sikorski.cloud/rogersik/hadolint --all-tags \ No newline at end of file