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
|
2024-01-08 21:45:36 +00:00
|
|
|
id: build_ubuntu
|
2023-11-16 22:56:40 +00:00
|
|
|
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:
|
2024-01-08 21:45:36 +00:00
|
|
|
image: ${{ steps.build_ubuntu.outputs.image }}
|
|
|
|
tags: ${{ steps.build_ubuntu.outputs.tags }}
|
|
|
|
registry: git.nul.ie
|
|
|
|
username: dev
|
|
|
|
password: ${{ secrets.PUSH_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build Minecraft
|
|
|
|
id: build_mc
|
|
|
|
uses: redhat-actions/buildah-build@v2
|
|
|
|
env:
|
|
|
|
BUILDAH_ISOLATION: chroot
|
|
|
|
with:
|
|
|
|
image: dev/craftblock
|
|
|
|
tags: 2024.1.0-java17-alpine
|
|
|
|
containerfiles: |
|
|
|
|
craftblock.Containerfile
|
|
|
|
- name: Push Minecraft
|
|
|
|
uses: redhat-actions/push-to-registry@v2
|
|
|
|
with:
|
|
|
|
image: ${{ steps.build_mc.outputs.image }}
|
|
|
|
tags: ${{ steps.build_mc.outputs.tags }}
|
2023-11-16 22:56:40 +00:00
|
|
|
registry: git.nul.ie
|
|
|
|
username: dev
|
|
|
|
password: ${{ secrets.PUSH_TOKEN }}
|