Skip to content

Commit

Permalink
Scaffold image build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino committed Aug 11, 2024
1 parent 72d1ebe commit 7020eb4
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Gluon

on:
push:

env:
GLUON_RELEASE: v2021.1.2

jobs:
gather_targets:
name: Gather targets
runs-on: ubuntu-24.04
outputs:
targets: ${{ steps.list.outputs.targets }}
steps:
- uses: actions/checkout@v4
with:
repository: freifunk-gluon/gluon
ref: ${{ env.GLUON_RELEASE }}
- run: |
"targets=$(make list-targets)" >> $GITHUB_OUTPUT
id: list
build:
needs: gather_targets
name: Build Images
runs-on: ubuntu-24.04
strategy:
matrix:
target: ${{ needs.gather_targets.outputs.targets }}
steps:
- uses: actions/checkout@v4
with:
repository: freifunk-gluon/gluon
ref: ${{ env.GLUON_RELEASE }}
- uses: actions/checkout@v4
with:
path: site
- run: |
echo "Not building target ${{ matrix.target }}"

0 comments on commit 7020eb4

Please sign in to comment.