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 1dc52e6
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 2 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:
- cron: "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
26 changes: 26 additions & 0 deletions .github/workflows/build_single_container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: build_single_container
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
1 change: 0 additions & 1 deletion MafiAStarLite/MafiAStarLite
Submodule MafiAStarLite deleted from 4421e6
1 change: 0 additions & 1 deletion MafiAStarLite/MafiAStarLite-frontend
Submodule MafiAStarLite-frontend deleted from a916f0

0 comments on commit 1dc52e6

Please sign in to comment.