Initial image build attempt
Some checks failed
Build and push / Build and push images (push) Failing after 19s

This commit is contained in:
Jack O'Sullivan 2023-11-16 22:56:40 +00:00
commit 8b3fa6b075
2 changed files with 36 additions and 0 deletions

View File

@ -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 }}

3
ubuntu.Containerfile Normal file
View File

@ -0,0 +1,3 @@
FROM node:18-bullseye
RUN apt-get -y update && \
apt-get -y install sudo