Initial builds

This commit is contained in:
Greg Hellings
2023-12-12 15:05:32 -06:00
commit cbe83078bb
3 changed files with 48 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
on:
push:
pull_request:
release:
types:
- published
- prereleased
workflow_dispatch:
jobs:
collect:
name: Collect all images
runs-on: podman
outputs:
matrix: ${{ steps.generate-list.ouputs.matrix }}
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Generate list
id: generate-list
shell: bash
run: |
echo matrix="$(ls | jq -Rn '[inputs]')" >> "${GITHUB_OUTPUT}"
build:
name: Build all images
runs-on: podman
needs: collect
matrix:
image: "${{ fromJson( needs.collect.outputs.matrix ) }}"
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Build image
shell: bash
run: |
cd "${{ matrix.image }}"
podman build --rm -t "${{ matrix.image }}" .
+1
View File
@@ -0,0 +1 @@
ubuntu:latest/
+7
View File
@@ -0,0 +1,7 @@
FROM ubuntu:latest
RUN apt update && apt -y install \
git \
nodejs \
bash && \
apt clean all