From 7b348888d70a0d3097d5b62e32cc48cadb876509 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Tue, 24 Aug 2021 20:18:13 +0200 Subject: [PATCH] fix version in docker builds --- .github/workflows/docker-publish.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index a554dd7..5f63d44 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -54,6 +54,9 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + build-args: | + BUILD_IDENTIFIER=${GITHUB_REF##*/} + BUILD_VERSION=$(echo ${GITHUB_SHA} | cut -c1-7) build-github: name: Push Docker image to Github Container Registry @@ -101,3 +104,6 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + build-args: | + BUILD_IDENTIFIER=${GITHUB_REF##*/} + BUILD_VERSION=$(echo ${GITHUB_SHA} | cut -c1-7) \ No newline at end of file