Skip to content

Bump keepup to 2.0, allow using KEEPUP_JSON_PATH env variable #46

Bump keepup to 2.0, allow using KEEPUP_JSON_PATH env variable

Bump keepup to 2.0, allow using KEEPUP_JSON_PATH env variable #46

name: build java
on:
push:
branches:
- master
workflow_dispatch:
env:
REGISTRY: ghcr.io
jobs:
push:
name: "Docker push for ${{ matrix.image }}"
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
include:
- image: minecraft
dockerfile: minecraft.Dockerfile
platforms: linux/amd64,linux/arm64
- image: proxy
dockerfile: proxy.Dockerfile
platforms: linux/amd64
steps:
- uses: actions/checkout@v3
- name: Set up QEMU for multi-platform support
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/mineinabyss/${{ matrix.image }}
- name: Build and push ${{ matrix.image }}
uses: docker/build-push-action@v3
with:
file: ${{ matrix.dockerfile }}
platforms: ${{ matrix.platforms }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}