From 82f505eba1413e96634579d6126dba05f8846965 Mon Sep 17 00:00:00 2001 From: Sander Saares Date: Tue, 28 Jan 2020 15:43:41 +0200 Subject: [PATCH] Add version label to image --- .github/workflows/push-to-latest.yml | 1 + .github/workflows/push-to-master.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push-to-latest.yml b/.github/workflows/push-to-latest.yml index baae492..c83041a 100644 --- a/.github/workflows/push-to-latest.yml +++ b/.github/workflows/push-to-latest.yml @@ -23,3 +23,4 @@ jobs: username: prometheusnet password: ${{ secrets.docker_hub_token }} snapshot: true + buildoptions: '--label version="${{ steps.make_version_string.outputs.versionstring }}"' \ No newline at end of file diff --git a/.github/workflows/push-to-master.yml b/.github/workflows/push-to-master.yml index e6ed569..989dbbb 100644 --- a/.github/workflows/push-to-master.yml +++ b/.github/workflows/push-to-master.yml @@ -22,4 +22,5 @@ jobs: name: prometheusnet/docker_exporter:cb username: prometheusnet password: ${{ secrets.docker_hub_token }} - snapshot: true \ No newline at end of file + snapshot: true + buildoptions: '--label version="${{ steps.make_version_string.outputs.versionstring }}"' \ No newline at end of file