mirror of
https://github.com/darksaid98/pterodactyl-graalvm.git
synced 2026-12-02 07:58:47 +00:00
Use github actions, add arm support
This commit is contained in:
1 parent
5eac3dfb95
commit
327576ef76
3 files changed
+108
-14
No files matched your search
@@ -0,0 +1,56 @@
|
||||
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
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login to GHCR
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Docker meta
|
||||
id: meta_graalvm
|
||||
uses: docker/metadata-action@v3
|
||||
with:
|
||||
# list of Docker images to use as base name for tags
|
||||
images: |
|
||||
ghcr.io/rikodev/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@v2
|
||||
with:
|
||||
context: ./${{ matrix.tag }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.meta_graalvm.outputs.tags }}
|
||||
labels: ${{ steps.meta_graalvm.outputs.labels }}
|
||||
Reference in new issue
Block a user