Skip to content

Commit 3d15591

Browse files
committed
Revert build changes
1 parent 3e800a8 commit 3d15591

File tree

2 files changed

+19
-198
lines changed

2 files changed

+19
-198
lines changed

.github/workflows/build-standard.yml

Lines changed: 0 additions & 189 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Build NVIDIA container image
2+
name: Build container image
33
on:
44
pull_request:
55
branches:
@@ -22,19 +22,28 @@ env:
2222
DEFAULT_TAG: "latest"
2323

2424
concurrency:
25-
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
25+
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-${{ inputs.brand_name}}-${{ inputs.stream_name }}
2626
cancel-in-progress: true
2727

2828
jobs:
2929
build_push:
30-
name: Build and push NVIDIA image
30+
name: Build and push image
3131
runs-on: ubuntu-24.04
3232

3333
permissions:
3434
contents: read
3535
packages: write
3636
id-token: write
3737

38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
variant:
42+
- base_image: "ghcr.io/ublue-os/bluefin-dx:stable-daily"
43+
tag_suffix: ""
44+
- base_image: "ghcr.io/ublue-os/bluefin-dx-nvidia:stable-daily"
45+
tag_suffix: "-nvidia"
46+
3847
steps:
3948
- name: Prepare environment
4049
run: |
@@ -80,12 +89,13 @@ jobs:
8089
with:
8190
# This generates all the tags for your image, you can add custom tags here too!
8291
# Default tags are "$DEFAULT_TAG" and "$DEFAULT_TAG.$date".
92+
# Matrix tag_suffix is appended to differentiate variants (e.g., latest vs latest-nvidia)
8393
tags: |
84-
type=raw,value=${{ env.DEFAULT_TAG }}-nvidia
85-
type=raw,value=${{ env.DEFAULT_TAG }}-nvidia.{{date 'YYYYMMDD'}}
86-
type=raw,value={{date 'YYYYMMDD'}}-nvidia
87-
type=sha,enable=${{ github.event_name == 'pull_request' }},suffix=-nvidia
88-
type=ref,event=pr,suffix=-nvidia
94+
type=raw,value=${{ env.DEFAULT_TAG }}${{ matrix.variant.tag_suffix }}
95+
type=raw,value=${{ env.DEFAULT_TAG }}${{ matrix.variant.tag_suffix }}.{{date 'YYYYMMDD'}}
96+
type=raw,value={{date 'YYYYMMDD'}}${{ matrix.variant.tag_suffix }}
97+
type=sha,enable=${{ github.event_name == 'pull_request' }},suffix=${{ matrix.variant.tag_suffix }}
98+
type=ref,event=pr,suffix=${{ matrix.variant.tag_suffix }}
8999
labels: |
90100
io.artifacthub.package.readme-url=https://raw.githubusercontent.com/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}/refs/heads/main/README.md
91101
org.opencontainers.image.created=${{ steps.date.outputs.date }}
@@ -117,7 +127,7 @@ jobs:
117127
tags: ${{ steps.metadata.outputs.tags }}
118128
labels: ${{ steps.metadata.outputs.labels }}
119129
build-args: |
120-
BASE_IMAGE=ghcr.io/ublue-os/bluefin-dx-nvidia:stable-daily
130+
BASE_IMAGE=${{ matrix.variant.base_image }}
121131
oci: false
122132

123133
# Rechunk is a script that we use on Universal Blue to make sure there isnt a single huge layer when your image gets published.

0 commit comments

Comments
 (0)