ci(docker): remove 'dev' branch from push trigger and update image tag handling

- Create 'edge' tag for pushes to main
- Create versioned & latest tags for new tags with `v` prefix (instead of on release)
This commit is contained in:
tigattack
2025-10-03 16:39:42 +01:00
parent 55cb07b3c8
commit eabcfd370c

View File

@@ -1,13 +1,14 @@
name: Build and Push Docker Images name: Build and Push Docker Images
on: on:
push:
branches:
- main
tags:
- 'v*'
pull_request: pull_request:
branches: branches:
- main - main
- dev
release:
types:
- published
workflow_dispatch: workflow_dispatch:
inputs: inputs:
push: push:
@@ -56,7 +57,7 @@ jobs:
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}} type=semver,pattern={{major}}
type=raw,value=latest,enable={{is_default_branch}} type=edge,branch=main
- name: Build and push ${{ matrix.image }} image - name: Build and push ${{ matrix.image }} image
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6