From f76c48209bfadec770e5379aaecfb120544c5517 Mon Sep 17 00:00:00 2001 From: franzmueller Date: Tue, 19 Dec 2023 08:22:33 +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 fa2aa18..a4758fb 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/import-repository:prod ghcr.io/senergy-platform/import-repository:prod + smartenergyplatform/import-repository:${{ steps.tag_version.outputs.new_tag }} + ghcr.io/senergy-platform/import-repository:${{ steps.tag_version.outputs.new_tag }} + smartenergyplatform/import-repository:latest + ghcr.io/senergy-platform/import-repository:latest