From 3a50ab57a8febb3fe02262c6e4b0d8b2b9e70d86 Mon Sep 17 00:00:00 2001 From: franzmueller Date: Tue, 19 Dec 2023 08:52:40 +0100 Subject: [PATCH] update workflow --- .github/workflows/prod.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index 47d0763..7b0cbf6 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -4,6 +4,8 @@ on: push: branches: - master + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' workflow_dispatch: jobs: @@ -27,6 +29,12 @@ jobs: uses: docker/setup-qemu-action@v1 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 + - name: Bump version and push tag + id: tag_version + uses: mathieudutour/github-tag-action@v6.1 + with: + release_branches: ".*" + github_token: ${{ secrets.GITHUB_TOKEN }} - name: Build and push uses: docker/build-push-action@v2 with: @@ -37,3 +45,7 @@ jobs: tags: | smartenergyplatform/notifier:prod ghcr.io/senergy-platform/notifier:prod + smartenergyplatform/notifier:${{ steps.tag_version.outputs.new_tag }} + ghcr.io/senergy-platform/notifier:${{ steps.tag_version.outputs.new_tag }} + smartenergyplatform/notifier:latest + ghcr.io/senergy-platform/notifier:latest