Skip to content

Build Velocity

Build Velocity #1324

Workflow file for this run

name: Build Velocity
on:
push:
branches: [ "master" ]
paths:
- velocity/**
- bin/**
- .github/workflows/velocity.yml
schedule:
- cron: "0 */12 * * *"
jobs:
build:
name: velocity-${{ matrix.runtime.name }}
runs-on: ubuntu-latest
strategy:
matrix:
runtime:
- image: eclipse-temurin:17-jre-jammy
name: temurin17-jammy
version: 17
platform: linux/amd64,linux/arm64/v8
os: debian
- image: eclipse-temurin:11-jre-jammy
name: temurin11-jammy
version: 11
platform: linux/amd64,linux/arm64/v8
os: debian
- image: eclipse-temurin:17-alpine
name: temurin17-alpine
version: 17
platform: linux/amd64
os: alpine
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: image=moby/buildkit:master
- name: Log in to ghcr.io
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set variables
id: vars
run: |
REPOSITORY_OWNER=${GITHUB_REPOSITORY,,}
echo "repository_owner=${REPOSITORY_OWNER%%/*}" >> "$GITHUB_OUTPUT"
- name: Build and push
run: ./velocity/build.sh
env:
RUNTIME_IMAGE: ${{ matrix.runtime.image }}
RUNTIME_NAME: ${{ matrix.runtime.name }}
RUNTIME_VERSION: ${{ matrix.runtime.version }}
RUNTIME_PLATFORM: ${{ matrix.runtime.platform }}
RUNTIME_OS: ${{ matrix.runtime.os }}
REPOSITORY: ghcr.io/${{ steps.vars.outputs.repository_owner }}/minecraft-proxy