Skip to content

Commit

Permalink
Update docker-image.yaml build-args
Browse files Browse the repository at this point in the history
  • Loading branch information
raikbitters authored Jul 20, 2023
1 parent 0afc25d commit 3a2d3d7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion workflows/common/docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a2d3d7

Please sign in to comment.