Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build Image

on:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- uses: actions/checkout@v4

# TODO: Do templates even make sense now?
- name: Emit Templates
run: |
echo "hi"

# FIXME: We're missing env vars
- name: Build
id: build
uses: docker/bake-action@v6
with:
source: .
files: ./9.0/bake.hcl
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be a reusable workflow that takes the "family" as an input.

targets: unifi
pull: true

- name: Parse build metadata
id: build-metadata
env:
BUILD_TARGET: unifi
BUILD_METADATA: ${{ steps.build.outputs.metadata }}
run: |
echo $BUILD_METADATA | jq --arg target "$BUILD_TARGET" -j '"image=", .[$target]."image.name"' >> $GITHUB_OUTPUT