feat(ci): Tag final images by branch name
Signed-off-by: Christoph Heiss <contact@christoph-heiss.at>
This commit is contained in:
parent
a24f152ba3
commit
3eec7e9f3c
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
|
||||
jobs:
|
||||
lint-and-build:
|
||||
|
@ -36,7 +37,7 @@ jobs:
|
|||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: docker/build-push-action@v3
|
||||
with:
|
||||
push: true
|
||||
context: .
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository }}:latest
|
||||
push: ${{ github.ref == 'refs/heads/main' }}
|
||||
ghcr.io/${{ github.repository }}:${{ github.ref_name }}
|
||||
|
|
Loading…
Reference in a new issue