Fix installers and OS build (#35)

Co-authored-by: softwarenoob <admin@softwarenoob.com>
This commit is contained in:
Quinten 2023-01-09 03:39:33 +01:00 committed by GitHub
parent 9c9a26669e
commit 18b25caaf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 78 additions and 45 deletions

View file

@ -19,18 +19,18 @@ jobs:
- alpine
- debian
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
with:
version: "v0.5.1"
version: "v0.9.1"
buildkitd-flags: --debug
- uses: docker/login-action@v1
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- uses: docker/build-push-action@v2
- uses: docker/build-push-action@v3
with:
context: ./oses/${{ matrix.oses }}
file: ./oses/${{ matrix.oses }}/Dockerfile

View file

@ -19,17 +19,17 @@ jobs:
- source
- rust
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
with:
version: "v0.5.1"
version: "v0.9.1"
buildkitd-flags: --debug
- uses: docker/login-action@v1
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- uses: docker/build-push-action@v2
- uses: docker/build-push-action@v3
with:
context: ./games/${{ matrix.game }}
file: ./games/${{ matrix.game }}/Dockerfile

View file

@ -21,19 +21,19 @@ jobs:
- 1.16
- 1.17
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
# Setup QEMU for ARM64 Build
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
with:
version: "v0.5.1"
version: "v0.9.1"
buildkitd-flags: --debug
- uses: docker/login-action@v1
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- uses: docker/build-push-action@v2
- uses: docker/build-push-action@v3
with:
context: ./go
file: ./go/${{ matrix.tag }}/Dockerfile

View file

@ -8,29 +8,34 @@ on:
- master
paths:
- installers/**
# Two separate jobs, first for multiarch (amd64, arm64), second for amd64 only
jobs:
push:
name: "installers:{{ matrix.tag }}"
pushMultiArch:
name: "yolks:installers_multiarch:${{ matrix.tag }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tag:
- alpine
- debian
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
with:
version: "v0.5.1"
version: "v0.9.1"
buildkitd-flags: --debug
- uses: docker/login-action@v1
- name: Setup QEMU for multiarch builds
uses: docker/setup-qemu-action@v2
with:
platforms: arm64,amd64
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- uses: docker/build-push-action@v2
- uses: docker/build-push-action@v3
with:
context: ./installers
file: ./installers/${{ matrix.tag }}/Dockerfile
@ -38,3 +43,31 @@ jobs:
push: true
tags: |
ghcr.io/pterodactyl/installers:${{ matrix.tag }}
pushAmd:
name: "yolks:installers_amd:${{ matrix.tag }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tag:
- debian
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v2
with:
version: "v0.7.0"
buildkitd-flags: --debug
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- uses: docker/build-push-action@v3
with:
context: ./installers
file: ./installers/${{ matrix.tag }}/Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/pterodactyl/installers:${{ matrix.tag }}

View file

@ -26,18 +26,18 @@ jobs:
- 18
- 18j9
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
with:
version: "v0.5.1"
version: "v0.9.1"
buildkitd-flags: --debug
- uses: docker/login-action@v1
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- uses: docker/build-push-action@v2
- uses: docker/build-push-action@v3
with:
context: ./java
file: ./java/${{ matrix.tag }}/Dockerfile

View file

@ -23,19 +23,19 @@ jobs:
- 17
- 18
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
# Setup QEMU for ARM64 Build
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
with:
version: "v0.5.1"
version: "v0.9.1"
buildkitd-flags: --debug
- uses: docker/login-action@v1
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- uses: docker/build-push-action@v2
- uses: docker/build-push-action@v3
with:
context: ./nodejs
file: ./nodejs/${{ matrix.tag }}/Dockerfile

View file

@ -22,19 +22,19 @@ jobs:
- '3.10'
- '3.11'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
# Setup QEMU for ARM64 Build
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
with:
version: "v0.5.1"
version: "v0.9.1"
buildkitd-flags: --debug
- uses: docker/login-action@v1
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- uses: docker/build-push-action@v2
- uses: docker/build-push-action@v3
with:
context: ./python
file: ./python/${{ matrix.tag }}/Dockerfile

View file

@ -6,7 +6,7 @@ LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolk
LABEL org.opencontainers.image.licenses=MIT
RUN apt update && apt upgrade -y \
&& apt install -y gcc g++ libgcc1 lib32gcc1 libc++-dev gdb libc6 git wget curl tar zip unzip binutils xz-utils liblzo2-2 cabextract iproute2 net-tools netcat telnet libatomic1 libsdl1.2debian libsdl2-2.0-0 \
&& apt install -y gcc g++ libgcc1 libc++-dev gdb libc6 git wget curl tar zip unzip binutils xz-utils liblzo2-2 cabextract iproute2 net-tools netcat telnet libatomic1 libsdl1.2debian libsdl2-2.0-0 \
libfontconfig libicu63 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadbclient-dev libduktape203 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates tzdata \
liblua5.3 libz-dev rapidjson-dev \
&& update-locale lang=en_US.UTF-8 \