mirror of
https://github.com/darksaid98/pterodactyl-graalvm.git
synced 2026-12-01 15:38:47 +00:00
63 lines
1.7 KiB
YAML
63 lines
1.7 KiB
YAML
name: build graalvm
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
jobs:
|
|
pterodactyl-graalvm:
|
|
name: "pterodactyl-graalvm:${{ matrix.tag }}"
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
tag:
|
|
- 11
|
|
- 17
|
|
- 19
|
|
- 17-JDK
|
|
- 20-JDK
|
|
- 21-JDK
|
|
- 11-EE
|
|
- 17-EE
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
- name: Set up Docker Buildx
|
|
id: buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Login to GHCR
|
|
if: github.event_name != 'pull_request'
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Docker meta
|
|
id: meta_graalvm
|
|
uses: docker/metadata-action@v4
|
|
with:
|
|
# list of Docker images to use as base name for tags
|
|
images: |
|
|
ghcr.io/darksaid98/pterodactyl-graalvm
|
|
# generate Docker tags based on the following events/attributes
|
|
tags: |
|
|
type=raw,${{ matrix.tag }}
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v3
|
|
with:
|
|
context: .
|
|
file: ./${{ matrix.tag }}/Dockerfile
|
|
platforms: linux/amd64,linux/arm64
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
tags: ${{ steps.meta_graalvm.outputs.tags }}
|
|
labels: ${{ steps.meta_graalvm.outputs.labels }} |