Skip to content

Commit

Permalink
add github actions to build containers
Browse files Browse the repository at this point in the history
  • Loading branch information
lilioid committed Sep 9, 2023
1 parent c324087 commit 82abacb
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build_containers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: build_containers

on:
push:
branches: [ master ]
schedule:
- "0 3 * * 1" # every monday at a 3am

permissions:
contents: read
packages: write

jobs:
build_container:
strategy:
fail-fast: false
matrix:
container:
- base-bullseye
uses: ./.github/workflows/build_single_container.yml
with:
container: "${{ matrix.container }}"
secrets: inherit
25 changes: 25 additions & 0 deletions .github/workflows/build_single_container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
workflow_dispatch:
inputs:
container:
description: "Which container to build"
type: string
required: true
workflow_call:
inputs:
container:
description: "Which container to build"
required: true
type: string

permissions:
contents: read
packages: write

jobs:
build_container:
name: "Build ${{ inputs.container }}"
uses: fsinfuhh/workflows/.github/workflows/build_image.yml@main
with:
image_base_name: "${{ inputs.container }}"
secrets: inherit

0 comments on commit 82abacb

Please sign in to comment.