ci: build dev branch and tag images
All checks were successful
build-and-push / lint (push) Successful in 5s
build-and-push / sonar (push) Successful in 12s
build-and-push / docker (push) Successful in 1m9s

This commit is contained in:
nocci 2025-12-31 10:19:30 +00:00
parent 67afeead60
commit c486f45bc0

View file

@ -4,6 +4,10 @@ on:
push:
branches:
- main
- dev
env:
IMAGE_TAG: ${{ github.ref == 'refs/heads/dev' && 'dev' || 'latest' }}
jobs:
lint:
@ -80,8 +84,8 @@ jobs:
- name: Build image
run: |
docker buildx build --load \
-t "${{ secrets.REGISTRY_IMAGE }}:latest" .
-t "${{ secrets.REGISTRY_IMAGE }}:${{ env.IMAGE_TAG }}" .
- name: Push image
run: |
docker push "${{ secrets.REGISTRY_IMAGE }}:latest"
docker push "${{ secrets.REGISTRY_IMAGE }}:${{ env.IMAGE_TAG }}"