mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-07 05:47:53 +00:00
feat: declare base image and fedora ver in recipe
This commit is contained in:
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@@ -46,6 +46,8 @@ jobs:
|
||||
- name: Gather image data from recipe
|
||||
run: |
|
||||
echo "IMAGE_NAME=$(yq '.name' ./recipe.yml)" >> $GITHUB_ENV
|
||||
echo "FEDORA_MAJOR_VERSION=$(yq '.fedora-version' ./recipe.yml)" >> $GITHUB_ENV
|
||||
echo "BASE_CONTAINER_URL=$(yq '.base-container' ./recipe.yml)" >> $GITHUB_ENV
|
||||
|
||||
- name: Generate tags
|
||||
id: generate-tags
|
||||
@@ -113,7 +115,8 @@ jobs:
|
||||
tags: |
|
||||
${{ steps.generate-tags.outputs.alias_tags }}
|
||||
build-args: |
|
||||
FEDORA_MAJOR_VERSION=${{ matrix.major_version }}
|
||||
FEDORA_MAJOR_VERSION=${{ env.FEDORA_MAJOR_VERSION }}
|
||||
BASE_CONTAINER_URL=${{ env.BASE_CONTAINER_URL }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
oci: false
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
ARG FEDORA_MAJOR_VERSION=37
|
||||
ARG BASE_CONTAINER_URL=ghcr.io/ublue-os/silverblue-main
|
||||
|
||||
# change this line if you want to change the image
|
||||
FROM ghcr.io/ublue-os/silverblue-main:${FEDORA_MAJOR_VERSION}
|
||||
FROM ${BASE_CONTAINER_URL}:${FEDORA_MAJOR_VERSION}
|
||||
|
||||
# copy over configuration files
|
||||
COPY etc /etc
|
||||
|
||||
@@ -1,4 +1,13 @@
|
||||
# the image will be at ghcr.io/yourusername/name
|
||||
name: startingpoint
|
||||
|
||||
# what native container image to build on top of
|
||||
# images not built by ublue might function unexpectly
|
||||
base-container: ghcr.io/ublue-os/silverblue-main
|
||||
|
||||
# what fedora version to use, you can just change this to update
|
||||
fedora-version: 37
|
||||
|
||||
rpms:
|
||||
- python3-pip # needed for yafti
|
||||
flatpaks:
|
||||
|
||||
Reference in New Issue
Block a user