mirror of
https://github.com/ManInDark/bootc-image.git
synced 2026-01-20 22:44:28 +01:00
FIX: prepare for multiple branches to build
This commit is contained in:
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@@ -2,15 +2,12 @@
|
|||||||
name: Build container image
|
name: Build container image
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '30 1 * * *'
|
- cron: '30 1 * * *'
|
||||||
push:
|
push:
|
||||||
branches:
|
paths:
|
||||||
- main
|
- "Containerfile"
|
||||||
paths-ignore:
|
- "build_files/**"
|
||||||
- '**/README.md'
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@@ -21,7 +18,7 @@ env:
|
|||||||
DEFAULT_TAG: "latest"
|
DEFAULT_TAG: "latest"
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-${{ inputs.brand_name}}-${{ inputs.stream_name }}
|
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-${{ inputs.brand_name }}-${{ inputs.stream_name }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -65,9 +62,8 @@ jobs:
|
|||||||
id: metadata
|
id: metadata
|
||||||
with:
|
with:
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=${{ env.DEFAULT_TAG }}
|
type=raw,value=${{ github.ref_name }}.${{ env.DEFAULT_TAG }}
|
||||||
type=raw,value=${{ env.DEFAULT_TAG }}.{{date 'YYYYMMDD-HHmm'}}
|
type=raw,value=${{ github.ref_name }}.{{date 'YYYYMMDD-HHmm'}}
|
||||||
type=raw,value={{date 'YYYYMMDD-HHmm'}}
|
|
||||||
type=sha,enable=${{ github.event_name == 'pull_request' }}
|
type=sha,enable=${{ github.event_name == 'pull_request' }}
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
labels: |
|
labels: |
|
||||||
@@ -79,7 +75,7 @@ jobs:
|
|||||||
org.opencontainers.image.title=${{ env.IMAGE_NAME }}
|
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.url=https://github.com/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}/tree/${{ github.sha }}
|
||||||
org.opencontainers.image.vendor=${{ github.repository_owner }}
|
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.deprecated=false
|
||||||
io.artifacthub.package.keywords=${{ env.IMAGE_KEYWORDS }}
|
io.artifacthub.package.keywords=${{ env.IMAGE_KEYWORDS }}
|
||||||
io.artifacthub.package.license=Apache-2.0
|
io.artifacthub.package.license=Apache-2.0
|
||||||
|
|||||||
Reference in New Issue
Block a user