Skip to content

Commit

Permalink
Add Git metadata to image tags in GH-Actions
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Cooper <[email protected]>
  • Loading branch information
tomncooper committed Oct 29, 2024
1 parent 24063d4 commit 02110de
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ jobs:
username: "${{ secrets.IMAGE_REPO_USERNAME }}"
password: "${{ secrets.IMAGE_REPO_PASSWORD }}"

- name: Build Image
- name: Image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ secrets.IMAGE_REPO_NAMESPACE }}/flink-sql-runner

- name: Test Image Build
if: github.ref_name != 'main'
uses: docker/build-push-action@v6
with:
Expand All @@ -59,7 +65,8 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
file: Dockerfile
tags: ${{ secrets.IMAGE_REPO_HOSTNAME }}/${{ secrets.IMAGE_REPO_NAMESPACE }}/flink-sql-runner:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

## Save the context information for use in Sonar analysis
- name: Save Build Context
Expand Down

0 comments on commit 02110de

Please sign in to comment.