mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-07 05:47:53 +00:00
chore: rewriting some parts, new recipe location
This commit is contained in:
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@@ -33,10 +33,10 @@ on:
|
|||||||
env:
|
env:
|
||||||
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
|
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
|
||||||
|
|
||||||
|
# Only deploys the branch named "live". Ignores all other branches, to allow
|
||||||
|
# having "development" branches without interfering with GHCR image uploads.
|
||||||
jobs:
|
jobs:
|
||||||
push-ghcr:
|
push-ghcr:
|
||||||
# Only deploys the branch named "live". Ignores all other branches, to allow
|
|
||||||
# having "development" branches without interfering with GHCR image uploads.
|
|
||||||
name: Build and push image
|
name: Build and push image
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
permissions:
|
permissions:
|
||||||
@@ -46,6 +46,9 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
||||||
|
# Add recipes for all the images you want to build here.
|
||||||
|
# Don't add module configuration files, you will get errors.
|
||||||
recipe:
|
recipe:
|
||||||
- recipe.yml
|
- recipe.yml
|
||||||
|
|
||||||
@@ -54,15 +57,15 @@ jobs:
|
|||||||
- name: Checkout Push to Registry action
|
- name: Checkout Push to Registry action
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Add yq for reading recipe.yml
|
- name: Add yq (for reading recipe.yml)
|
||||||
uses: mikefarah/yq@v4.34.2
|
uses: mikefarah/yq@v4.34.2
|
||||||
|
|
||||||
- name: Gather image data from recipe
|
- name: Gather image data from recipe
|
||||||
run: |
|
run: |
|
||||||
echo "IMAGE_NAME=$(yq '.name' ./${{ matrix.recipe }})" >> $GITHUB_ENV
|
echo "IMAGE_NAME=$(yq '.name' ./config/${{ matrix.recipe }})" >> $GITHUB_ENV
|
||||||
echo "IMAGE_DESCRIPTION=$(yq '.description' ./${{ matrix.recipe }})" >> $GITHUB_ENV
|
echo "IMAGE_DESCRIPTION=$(yq '.description' ./config/${{ matrix.recipe }})" >> $GITHUB_ENV
|
||||||
echo "FEDORA_MAJOR_VERSION=$(yq '.fedora-version' ./${{ matrix.recipe }})" >> $GITHUB_ENV
|
echo "FEDORA_MAJOR_VERSION=$(yq '.fedora-version' ./config/${{ matrix.recipe }})" >> $GITHUB_ENV
|
||||||
echo "BASE_IMAGE_URL=$(yq '.base-image' ./${{ matrix.recipe }})" >> $GITHUB_ENV
|
echo "BASE_IMAGE_URL=$(yq '.base-image' ./config/${{ matrix.recipe }})" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Get current version
|
- name: Get current version
|
||||||
id: labels
|
id: labels
|
||||||
|
|||||||
Reference in New Issue
Block a user