Skip to content

build(deps): bump actions/checkout in the updates group (#174) #31

build(deps): bump actions/checkout in the updates group (#174)

build(deps): bump actions/checkout in the updates group (#174) #31

Workflow file for this run

name: Build and Publish
on:
push:
branches:
- master
- test/*
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
variant:
- latest
- java17
- java21
- java8
- java11
include:
- variant: latest
baseImage: eclipse-temurin:17-focal
platforms: linux/amd64,linux/arm/v7,linux/arm64
tagPrefix: ""
- variant: java17
baseImage: eclipse-temurin:17-focal
platforms: linux/amd64,linux/arm/v7,linux/arm64
tagPrefix: java17-
- variant: java21
baseImage: eclipse-temurin:21-jre
platforms: linux/amd64,linux/arm64
tagPrefix: java21-
- variant: java8
baseImage: adoptopenjdk:8-jre-hotspot-focal
platforms: linux/amd64,linux/arm/v7,linux/arm64
tagPrefix: java8-
- variant: java11
baseImage: adoptopenjdk:11-jre-hotspot-focal
platforms: linux/amd64,linux/arm/v7,linux/arm64
tagPrefix: java11-
env:
DOCKER_HUB_ORG: itzg
steps:
- uses: actions/checkout@v4.1.3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5.5.1
with:
images: |
${{ env.DOCKER_HUB_ORG }}/bungeecord
tags: |
type=ref,event=branch,prefix=${{ matrix.tagPrefix }}
type=ref,event=tag,prefix=${{ matrix.tagPrefix }}
type=raw,value=${{ matrix.variant }}
flavor: |
latest=false
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3.3.0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3.0.0
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3.1.0
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v5.3.0
with:
platforms: ${{ matrix.platforms }}
# ensure latest base image is used
pull: true
push: true
build-args: |
BASE_IMAGE=${{ matrix.baseImage }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha,scope=${{ matrix.variant }}
cache-to: type=gha,mode=max,scope=${{ matrix.variant }}