From 8b3fa6b07528b45b952c618308b1c993a94328c0 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Thu, 16 Nov 2023 22:56:40 +0000 Subject: [PATCH] Initial image build attempt --- .gitea/workflows/build.yaml | 33 +++++++++++++++++++++++++++++++++ ubuntu.Containerfile | 3 +++ 2 files changed, 36 insertions(+) create mode 100644 .gitea/workflows/build.yaml create mode 100644 ubuntu.Containerfile diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..d90eed7 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,33 @@ +name: Build and push + +on: + push: + branches: [master] + +jobs: + build: + name: Build and push images + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - name: Install buildah + run: | + apt-get -y update + apt-get -y install buildah + + - name: Build Ubuntu 22.04 + id: build + uses: redhat-actions/buildah-build@v2 + with: + image: git.nul.ie/dev/actions-ubuntu + tags: '22.04' + containerfiles: | + ubuntu.Containerfile + - name: Push Ubuntu 22.04 + uses: redhat-actions/push-to-registry@v2 + with: + image: ${{ steps.build.outputs.image }} + tags: ${{ steps.build.outputs.tags }} + registry: git.nul.ie + username: dev + password: ${{ secrets.PUSH_TOKEN }} diff --git a/ubuntu.Containerfile b/ubuntu.Containerfile new file mode 100644 index 0000000..f1d6fdc --- /dev/null +++ b/ubuntu.Containerfile @@ -0,0 +1,3 @@ +FROM node:18-bullseye +RUN apt-get -y update && \ + apt-get -y install sudo