From a69975cf58bc4d41d55697e2fad580abf6350986 Mon Sep 17 00:00:00 2001 From: Ethan Shold Date: Mon, 24 Jun 2024 10:58:35 -0500 Subject: [PATCH] add version tagging --- .github/workflows/build-and-push.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index 887c125..73ae39e 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -4,6 +4,8 @@ on: push: branches: - master + tags: + - 'v*' pull_request: branches: - master @@ -38,7 +40,10 @@ jobs: with: context: . push: true - tags: sholdee/adguardexporter:latest + tags: | + sholdee/adguardexporter:latest + sholdee/adguardexporter:${{ github.sha }} + sholdee/adguardexporter:${{ github.ref_name }} platforms: linux/amd64,linux/arm64 cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache