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
|
- name: Gather image data from recipe
|
||||||
run: |
|
run: |
|
||||||
echo "IMAGE_NAME=$(yq '.name' ./recipe.yml)" >> $GITHUB_ENV
|
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
|
- name: Generate tags
|
||||||
id: generate-tags
|
id: generate-tags
|
||||||
@@ -113,7 +115,8 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
${{ steps.generate-tags.outputs.alias_tags }}
|
${{ steps.generate-tags.outputs.alias_tags }}
|
||||||
build-args: |
|
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 }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
oci: false
|
oci: false
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
ARG FEDORA_MAJOR_VERSION=37
|
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 ${BASE_CONTAINER_URL}:${FEDORA_MAJOR_VERSION}
|
||||||
FROM ghcr.io/ublue-os/silverblue-main:${FEDORA_MAJOR_VERSION}
|
|
||||||
|
|
||||||
# copy over configuration files
|
# copy over configuration files
|
||||||
COPY etc /etc
|
COPY etc /etc
|
||||||
|
|||||||
@@ -1,4 +1,13 @@
|
|||||||
|
# the image will be at ghcr.io/yourusername/name
|
||||||
name: startingpoint
|
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:
|
rpms:
|
||||||
- python3-pip # needed for yafti
|
- python3-pip # needed for yafti
|
||||||
flatpaks:
|
flatpaks:
|
||||||
|
|||||||
Reference in New Issue
Block a user