workflows: rename main -> master & trigger for support branches as well

This commit is contained in:
Yonas Habteab 2025-07-21 10:20:59 +02:00
parent 11b3564d7c
commit 1fbcbae02d

View File

@ -2,21 +2,20 @@
# pushes them to both GitHub Container Registry (GHCR) and Docker Hub. # pushes them to both GitHub Container Registry (GHCR) and Docker Hub.
# It sets up QEMU and Docker Buildx for cross-platform builds, # It sets up QEMU and Docker Buildx for cross-platform builds,
# and builds the container images using the Containerfile. # and builds the container images using the Containerfile.
# Upon pushes to the main branch or when releases are published, # Upon pushes to the master branch or when releases are published,
# it logs into GHCR and Docker Hub using credentials from GitHub secrets, # it logs into GHCR and Docker Hub using credentials from GitHub secrets,
# tags and pushes the images to both registries, # tags and pushes the images to both registries,
# and generates and pushes signed build provenance attestations to each registry. # and generates and pushes signed build provenance attestations to each registry.
# The workflow also triggers for pull requests to the main branch, verifying only the image build. # The workflow also triggers for pull requests to the master branch, verifying only the image build.
name: Build and Publish Container Image name: Build and Publish Container Image
on: on:
push: push:
branches: branches:
- main - master
pull_request: - 'support/*'
branches: pull_request: {}
- main
release: release:
types: types:
- published - published