From 3a2d3d731e7d6ad40839c46aa90425e61ce124a2 Mon Sep 17 00:00:00 2001 From: Reingold Shekhtel <13565058+raikbitters@users.noreply.github.com> Date: Thu, 20 Jul 2023 14:10:28 +0400 Subject: [PATCH] Update docker-image.yaml build-args --- workflows/common/docker-image.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/workflows/common/docker-image.yaml b/workflows/common/docker-image.yaml index 2fe2e22..77c6e6f 100644 --- a/workflows/common/docker-image.yaml +++ b/workflows/common/docker-image.yaml @@ -28,13 +28,19 @@ jobs: id: vars run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + - name: Get current date + id: date + run: echo "::set-output name=date::$(date +'%Y-%m-%d')" + - name: Build and export uses: docker/build-push-action@v4 env: VERSION: ${{ github.head_ref }}-${{ steps.vars.outputs.sha_short }} + BRANCH: ${{ github.head_ref }} + DATE: ${{ steps.date.outputs.date }} with: context: . - build-args: APP_VERSION=${{ env.VERSION }} + build-args: APP_VERSION=${{ env.VERSION }}, BUILD_BRANCH=${{ env.BRANCH }}, BUILD_DATE=${{ env.DATE }} platforms: ${{ env.PLATFORMS }} tags: ${{ github.repository }}:latest outputs: type=docker,dest=/tmp/docker-image.tar