Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
franzmueller authored Dec 18, 2023
1 parent 546e0df commit 3548418
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- 'v[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:

jobs:
Expand All @@ -30,9 +31,14 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
-
name: Build and push
password: ${{ secrets.GITHUB_TOKEN }}
- 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:
context: .
Expand All @@ -42,3 +48,7 @@ jobs:
tags: |
smartenergyplatform/analytics-flow-repo:latest
ghcr.io/senergy-platform/analytics-flow-repo:latest
smartenergyplatform/analytics-flow-repo:prod
ghcr.io/senergy-platform/analytics-flow-repo:prod
smartenergyplatform/analytics-flow-repo:${{ steps.tag_version.outputs.new_tag }}
ghcr.io/senergy-platform/analytics-flow-repo:${{ steps.tag_version.outputs.new_tag }}

0 comments on commit 3548418

Please sign in to comment.