Skip to content

Commit

Permalink
fixed tagging issue at build for amd-intel
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyCatDev committed Dec 11, 2024
1 parent c55fc48 commit 888ed40
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: build-bluecat
on:
pull_request:
Expand Down Expand Up @@ -28,13 +27,12 @@ jobs:
runs-on: ubuntu-24.04
strategy:
matrix:
variant: [amd, nvidia]
variant: [amd, nvidia] # Define the two variants
env:
VARIANT: ${{ matrix.variant }}
CONTAINERFILE: ${{ matrix.variant == 'amd' && './Containerfile' || './Containerfile-Nvidia' }}
IMAGE_NAME_SUFFIX: ${{ matrix.variant == 'nvidia' && '-nvidia' || '' }}


permissions:
contents: read
packages: write
Expand Down Expand Up @@ -82,18 +80,18 @@ jobs:
id: meta
with:
images: |
${{ env.MY_IMAGE_NAME }}-${{ env.IMAGE_NAME_SUFFIX }}
${{ env.MY_IMAGE_NAME }}${{ env.IMAGE_NAME_SUFFIX }}
labels: |
org.opencontainers.image.description=${{ env.MY_IMAGE_DESC }}
org.opencontainers.image.title=${{ env.MY_IMAGE_NAME }}-${{ env.IMAGE_NAME_SUFFIX }}
org.opencontainers.image.title=${{ env.MY_IMAGE_NAME }}${{ env.IMAGE_NAME_SUFFIX }}
- name: Build Image
id: build_image
uses: redhat-actions/buildah-build@v2
with:
containerfiles: |
${{ env.CONTAINERFILE }}
image: ${{ env.MY_IMAGE_NAME }}-${{ env.IMAGE_NAME_SUFFIX }}
image: ${{ env.MY_IMAGE_NAME }}${{ env.IMAGE_NAME_SUFFIX }}
tags: |
${{ steps.generate-tags.outputs.alias_tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit 888ed40

Please sign in to comment.