actions-images/.gitea/workflows/build.yaml

38 lines
961 B
YAML
Raw Normal View History

2023-11-16 22:56:40 +00:00
name: Build and push
on:
push:
branches: [master]
jobs:
build:
name: Build and push images
2023-11-18 15:55:24 +00:00
runs-on: debian-node-bullseye
2023-11-16 22:56:40 +00:00
steps:
- uses: actions/checkout@v4
- name: Install buildah
run: |
apt-get -y update
2023-11-16 23:26:09 +00:00
apt-get -y install buildah podman
2023-11-16 22:56:40 +00:00
2023-11-16 23:22:20 +00:00
(echo '[storage]';echo 'driver = "vfs"') > /etc//containers/storage.conf
2023-11-16 22:56:40 +00:00
- name: Build Ubuntu 22.04
id: build
uses: redhat-actions/buildah-build@v2
2023-11-16 23:22:20 +00:00
env:
BUILDAH_ISOLATION: chroot
2023-11-16 22:56:40 +00:00
with:
2023-11-16 23:26:09 +00:00
image: dev/actions-ubuntu
2023-11-16 22:56:40 +00:00
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 }}