Adding asrock image, other minor tweaks

This commit is contained in:
Ben Radey
2025-11-15 11:48:35 -05:00
parent d12e6f2bb9
commit b51aeca341
8 changed files with 144 additions and 104 deletions
+46 -7
View File
@@ -9,9 +9,8 @@ on:
env:
REGISTRY: ghcr.io
SERVER_IMAGE_NAME: "supermicro-x10drh"
SERVER_IMAGE_DIR: "supermicro-x10drh"
LAPTOP_IMAGE_NAME: "lenovo-16arh7h"
LAPTOP_IMAGE_DIR: "lenovo-16arh7h"
DESKTOP_IMAGE_NAME: "asrock-x570"
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ github.token }}
@@ -27,8 +26,7 @@ jobs:
- name: Build container image
uses: redhat-actions/buildah-build@v2.12
with:
context: ${{ env.SERVER_IMAGE_DIR }}
containerfiles: ${{ env.SERVER_IMAGE_DIR }}/Containerfile
containerfiles: Containerfile-${{ env.SERVER_IMAGE_NAME }}
image: ${{ env.SERVER_IMAGE_NAME }}
layers: false
oci: true
@@ -43,7 +41,7 @@ jobs:
password: ${{ env.REGISTRY_PASSWORD }}
extra-args: |
--disable-content-trust
lenovo-16arh7h:
asrock-x570:
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
@@ -68,8 +66,48 @@ jobs:
- name: Build container image
uses: redhat-actions/buildah-build@v2.12
with:
context: ${{ env.LAPTOP_IMAGE_DIR }}
containerfiles: ${{ env.LAPTOP_IMAGE_DIR }}/Containerfile
containerfiles: Containerfile-${{ env.DESKTOP_IMAGE_NAME }}
image: ${{ env.DESKTOP_IMAGE_NAME }}
layers: false
oci: true
- name: Push to ghcr.io
uses: redhat-actions/push-to-registry@v2.7
with:
image: ${{ env.DESKTOP_IMAGE_NAME }}
tags: "latest"
registry: ${{ env.IMAGE_REGISTRY }}
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
extra-args: |
--disable-content-trust
lenovo-16arh7h:
needs: asrock-x570
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: false
swap-storage: true
- name: Checkout repo
uses: actions/checkout@v3
- name: Build container image
uses: redhat-actions/buildah-build@v2.12
with:
containerfiles: Containerfile-${{ env.LAPTOP_IMAGE_NAME }}
image: ${{ env.LAPTOP_IMAGE_NAME }}
layers: false
oci: true
@@ -84,3 +122,4 @@ jobs:
password: ${{ env.REGISTRY_PASSWORD }}
extra-args: |
--disable-content-trust