commit cbe83078bb46e7f1fb34f3b07522ebc59d960369 Author: Greg Hellings Date: Tue Dec 12 15:05:32 2023 -0600 Initial builds diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..8151a8c --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -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 }}" . \ No newline at end of file diff --git a/ubuntu:20.04 b/ubuntu:20.04 new file mode 120000 index 0000000..62a3f1c --- /dev/null +++ b/ubuntu:20.04 @@ -0,0 +1 @@ +ubuntu:latest/ \ No newline at end of file diff --git a/ubuntu:latest/Containerfile b/ubuntu:latest/Containerfile new file mode 100644 index 0000000..168e427 --- /dev/null +++ b/ubuntu:latest/Containerfile @@ -0,0 +1,7 @@ +FROM ubuntu:latest + +RUN apt update && apt -y install \ + git \ + nodejs \ + bash && \ + apt clean all \ No newline at end of file