Skip to content

Commit

Permalink
Generate one image for each distro in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
efrecon committed Mar 3, 2024
1 parent a72034c commit 822a0c9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ on:
jobs:
build-base:
uses: ./.github/workflows/_build.yml
strategy:
matrix:
os: [ubuntu, fedora]
with:
image: ${{ github.actor }}/runner-krunvm-base
file: Dockerfile.base
image: ${{ github.actor }}/runner-krunvm-base-${{ matrix.os }}
file: Dockerfile.base.${{ matrix.os }}
platforms: linux/amd64
secrets:
username: ${{ github.actor }}
Expand All @@ -20,12 +23,16 @@ jobs:
needs:
- build-base
uses: ./.github/workflows/_build.yml
strategy:
matrix:
os: [ubuntu, fedora]
with:
image: ${{ github.actor }}/runner-krunvm
image: ${{ github.actor }}/runner-krunvm-${{ matrix.os }}
file: Dockerfile
platforms: linux/amd64
build-args: |
VERSION=${{ needs.build-base.outputs.version }}
DISTRO=${{ matrix.os }}
secrets:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# syntax=docker/dockerfile:1
ARG VERSION=main
FROM ghcr.io/efrecon/runner-krunvm-base:${VERSION}
ARG DISTRO=fedora
FROM ghcr.io/efrecon/runner-krunvm-base-${DISTRO}:${VERSION}

ARG INSTALL_VERSION=latest
ARG INSTALL_NAMESPACE=/opt/gh-runner-krunvm
Expand Down

0 comments on commit 822a0c9

Please sign in to comment.