From f246449ed54bd1965c2e860d14226d9e716d1b98 Mon Sep 17 00:00:00 2001 From: Christoph Muellner <33160506+chrismuellner@users.noreply.github.com> Date: Thu, 15 Dec 2022 12:34:18 +0100 Subject: [PATCH] Add dynamic docker labels on release (#1407) --- .github/workflows/publish-images.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-images.yaml b/.github/workflows/publish-images.yaml index bd1991a30e..971ebb3b40 100644 --- a/.github/workflows/publish-images.yaml +++ b/.github/workflows/publish-images.yaml @@ -20,8 +20,17 @@ jobs: id: prep run: | hack/build/ci/prepare-build-variables.sh + - name: Docker metadata + uses: docker/metadata-action@57396166ad8aefe6098280995947635806a0e6ea # v4.1.1 + id: meta + with: + images: dynatrace/dynatrace-operator + tags: ${{ steps.prep.outputs.docker_image_tag }} + labels: | + ${{ steps.prep.outputs.docker_image_labels }} + vcs-ref=${{ github.sha }} outputs: - labels: ${{ steps.prep.outputs.docker_image_labels }} + labels: ${{ steps.meta.outputs.labels }} version: ${{ steps.prep.outputs.docker_image_tag }} build: