Skip to content

Commit

Permalink
ci: add version build arg to container builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Harjot1Singh committed Oct 25, 2021
1 parent 78a13c9 commit d78d87f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ jobs:
tags: |
shabados/database-viewer-${{ matrix.context }}:v${{ needs.prepare.outputs.release-version }}
ghcr.io/shabados/database-viewer-${{ matrix.context }}:v${{ needs.prepare.outputs.release-version }}
build-args: |
version=${{ needs.prepare.outputs.release-version }}
outputs: type=docker,dest=/tmp/database-viewer-${{ matrix.context }}.tar

- name: Upload Docker image
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ jobs:
tags: |
shabados/database-viewer-${{ matrix.context }}:v${{ needs.prepare.outputs.release-version }}
ghcr.io/shabados/database-viewer-${{ matrix.context }}:v${{ needs.prepare.outputs.release-version }}
build-args: |
version=${{ needs.prepare.outputs.release-version }}
outputs: type=docker,dest=/tmp/database-viewer-${{ matrix.context }}.tar

- name: Upload Docker image
Expand Down

0 comments on commit d78d87f

Please sign in to comment.