FIX: prepare for multiple branches to build

This commit is contained in:
2025-11-28 18:02:14 +01:00
parent effa4354f4
commit 10620a1909

View File

@@ -2,15 +2,12 @@
name: Build container image
on:
pull_request:
branches:
- main
schedule:
- cron: '30 1 * * *'
push:
branches:
- main
paths-ignore:
- '**/README.md'
paths:
- "Containerfile"
- "build_files/**"
workflow_dispatch:
env:
@@ -65,9 +62,8 @@ jobs:
id: metadata
with:
tags: |
type=raw,value=${{ env.DEFAULT_TAG }}
type=raw,value=${{ env.DEFAULT_TAG }}.{{date 'YYYYMMDD-HHmm'}}
type=raw,value={{date 'YYYYMMDD-HHmm'}}
type=raw,value=${{ github.ref_name }}.${{ env.DEFAULT_TAG }}
type=raw,value=${{ github.ref_name }}.{{date 'YYYYMMDD-HHmm'}}
type=sha,enable=${{ github.event_name == 'pull_request' }}
type=ref,event=pr
labels: |
@@ -79,7 +75,7 @@ jobs:
org.opencontainers.image.title=${{ env.IMAGE_NAME }}
org.opencontainers.image.url=https://github.com/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}/tree/${{ github.sha }}
org.opencontainers.image.vendor=${{ github.repository_owner }}
org.opencontainers.image.version=${{ env.DEFAULT_TAG }}.{{date 'YYYYMMDD-HHmm'}}
org.opencontainers.image.version=${{ github.ref_name }}.{{date 'YYYYMMDD-HHmm'}}
io.artifacthub.package.deprecated=false
io.artifacthub.package.keywords=${{ env.IMAGE_KEYWORDS }}
io.artifacthub.package.license=Apache-2.0