feat(ci): Tag final images by branch name

Signed-off-by: Christoph Heiss <contact@christoph-heiss.at>
This commit is contained in:
Christoph Heiss 2022-10-27 19:03:58 +02:00 committed by Christoph Heiss
parent a24f152ba3
commit 3eec7e9f3c
Signed by: c8h4
GPG key ID: 6817E9C75C0785D7

View file

@ -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 }}