actions-images/.gitea/workflows/build.yaml
Jack O'Sullivan 08f853c5d8
Some checks failed
Build and push / Build and push images (push) Failing after 1m43s
Add Minecraft image
2024-01-08 21:53:49 +00:00

57 lines
1.5 KiB
YAML

name: Build and push
on:
push:
branches: [master]
jobs:
build:
name: Build and push images
runs-on: debian-node-bullseye
steps:
- uses: actions/checkout@v4
- name: Install buildah
run: |
apt-get -y update
apt-get -y install buildah podman
(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: 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 }}
- name: Build Minecraft
id: build
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.outputs.image }}
tags: ${{ steps.build.outputs.tags }}
registry: git.nul.ie
username: dev
password: ${{ secrets.PUSH_TOKEN }}