Skip to content

Commit

Permalink
gross
Browse files Browse the repository at this point in the history
  • Loading branch information
jmpolom committed May 3, 2024
1 parent bf5fdcf commit a79ddab
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-push-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
uses: ./.github/workflows/build-push.yml
with:
containerfile: ./Containerfile.workstation
from_tag: ${{ inputs.release_version }}
release_version: ${{ inputs.release_version }}
tag_suffix: -${{ github.ref_name }}
secrets:
Expand All @@ -21,7 +22,8 @@ jobs:
needs: build-push-base-image
with:
containerfile: ./Containerfile.nvidia
release_version: ${{ inputs.release_version }}-${{ github.ref_name }}
from_tag: ${{ inputs.release_version }}-${{ github.ref_name }}
release_version: ${{ inputs.release_version }}
tag_suffix: -nvidia
secrets:
actions_token: ${{ secrets.actions_token }}
4 changes: 4 additions & 0 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
containerfile:
required: true
type: string
from_tag:
required: true
type: string
release_version:
required: true
type: string
Expand Down Expand Up @@ -36,6 +39,7 @@ jobs:
containerfiles: ${{ inputs.containerfile }}
build-args: |
release=${{ inputs.release_version }}
tag=${{ inputs.from_tag }}
- name: push image
id: push-base-image
uses: redhat-actions/push-to-registry@v2
Expand Down
5 changes: 3 additions & 2 deletions Containerfile.nvidia
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
ARG variant=silverblue
ARG release=38
ARG tag=38-main
ARG variant=silverblue

FROM ghcr.io/jmpolom/fedora-$variant-ws:$release as kmod-build
FROM ghcr.io/jmpolom/fedora-$variant-ws:$tag as kmod-build
ARG release
RUN rpm -q kernel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}' > /kernel-version.txt && \
rpm-ostree install -y https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$release.noarch.rpm \
Expand Down
5 changes: 3 additions & 2 deletions Containerfile.workstation
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
ARG variant=silverblue
ARG release=38
ARG tag=38
ARG variant=silverblue

FROM quay.io/fedora-ostree-desktops/$variant:$release
FROM quay.io/fedora-ostree-desktops/$variant:$tag
COPY etc/containers/ /etc/containers/
COPY usr/bin/ /usr/bin/
RUN rpm-ostree install \
Expand Down

0 comments on commit a79ddab

Please sign in to comment.