actions-images/.gitea/workflows/build.yaml
Jack O'Sullivan 85c3aa9bbf
Some checks failed
Build and push / Build and push images (push) Failing after 1m16s
Fix buildah inside container
2023-11-16 23:22:20 +00:00

38 lines
957 B
YAML

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
(echo '[storage]';echo 'driver = "vfs"') > /etc//containers/storage.conf
- name: Build Ubuntu 22.04
id: build
uses: redhat-actions/buildah-build@v2
env:
BUILDAH_ISOLATION: chroot
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 }}