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_ubuntu 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_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 }} registry: git.nul.ie username: dev password: ${{ secrets.PUSH_TOKEN }}