Skip to content

Commit

Permalink
fix: update action to build bluefin
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge O. Castro authored Mar 8, 2023
1 parent 775b385 commit cebc564
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ on:
- '**.md'
- '**.txt'
schedule:
- cron: '20 20 * * *' # 8:20pm everyday
- cron: '20 22 * * *' # 10:20pm everyday
push:
branches:
- main
paths-ignore:
- '**.md'
- '**.txt'
env:
IMAGE_BASE_NAME: main
IMAGE_BASE_NAME: bluefin
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}

jobs:
Expand All @@ -29,33 +29,27 @@ jobs:
strategy:
fail-fast: false
matrix:
image_name: [silverblue, kinoite, vauxite, sericea, base, lxqt, mate]
image_flavor: [main, nvidia]
major_version: [37, 38]
include:
- major_version: 37
is_latest_version: true
is_stable_version: true
- major_version: 38
is_latest_version: true
is_latest_version: false
is_stable_version: false
exclude:
# There is no Fedora 37 version of sericea
# When F38 is added, sericea will automatically be built too
- image_name: sericea
major_version: 37
steps:
# Checkout push-to-registry action GitHub repository
- name: Checkout Push to Registry action
uses: actions/checkout@v3

- name: Matrix Variables
run: |
if [[ "${{ matrix.image_name }}" == "lxqt" || "${{ matrix.image_name }}" == "mate" ]]; then
echo "SOURCE_IMAGE=base" >> $GITHUB_ENV
if [[ "${{ matrix.image_flavor }}" == "main" ]]; then
echo "IMAGE_NAME=bluefin" >> $GITHUB_ENV
else
echo "SOURCE_IMAGE=${{ matrix.image_name }}" >> $GITHUB_ENV
echo "IMAGE_NAME=${{ format('{0}-{1}', matrix.image_name, env.IMAGE_BASE_NAME) }}" >> $GITHUB_ENV
fi
echo "IMAGE_NAME=${{ format('{0}-{1}', matrix.image_name, env.IMAGE_BASE_NAME) }}" >> $GITHUB_ENV
- name: Generate tags
id: generate-tags
Expand Down Expand Up @@ -109,7 +103,7 @@ jobs:
labels: |
org.opencontainers.image.title=${{ env.IMAGE_NAME }}
org.opencontainers.image.description=A base ${{ env.IMAGE_NAME }} image with batteries included
io.artifacthub.package.readme-url=https://raw.githubusercontent.com/ublue-os/main/main/README.md
io.artifacthub.package.readme-url=https://raw.githubusercontent.com/ublue-os/bluefin/bluefin/README.md
io.artifacthub.package.logo-url=https://avatars.githubusercontent.com/u/120078124?s=200&v=4
# Build image using Buildah action
Expand All @@ -123,8 +117,8 @@ jobs:
tags: |
${{ steps.generate-tags.outputs.alias_tags }}
build-args: |
IMAGE_NAME=${{ matrix.image_name }}
SOURCE_IMAGE=${{ env.SOURCE_IMAGE }}
IMAGE_NAME=${{ env.IMAGE_NAME }}
SOURCE_IMAGE=main
FEDORA_MAJOR_VERSION=${{ matrix.major_version }}
labels: ${{ steps.meta.outputs.labels }}
oci: false
Expand Down

0 comments on commit cebc564

Please sign in to comment.