Skip to content

Commit

Permalink
Revert "feat: reusable build workflow"
Browse files Browse the repository at this point in the history
Will figure these out at a later date. Too much effort right now.

This reverts commit 4289318.
  • Loading branch information
Software-Noob committed Jun 1, 2024
1 parent 37c2069 commit c8ffecf
Show file tree
Hide file tree
Showing 12 changed files with 239 additions and 90 deletions.
43 changes: 0 additions & 43 deletions .github/actions/build-docker-image.yml

This file was deleted.

23 changes: 19 additions & 4 deletions .github/workflows/games.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build game images
name: build games

on:
workflow_dispatch:
Expand Down Expand Up @@ -27,12 +27,27 @@ jobs:
matrix:
tag:
- source-sourcemod

steps:
- name: Call reusable build image workflow
uses: ./.github/workflows/build-docker-image.yml
- name: Git checkout for Github repository workspace
uses: actions/checkout@v4

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug

- name: Login to registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push image
uses: docker/build-push-action@v5
with:
context: ./games
platforms: linux/amd64
file: ./games/${{ matrix.tag }}/Dockerfile
push: true
tags: ghcr.io/software-noob/pterodactyl-images:games_${{ matrix.tag }}
26 changes: 22 additions & 4 deletions .github/workflows/java-corretto.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Java Corretto
name: build java_corretto

on:
workflow_dispatch:
Expand Down Expand Up @@ -32,12 +32,30 @@ jobs:
- 19
- 20
- 21

steps:
- name: Call reusable build image workflow
uses: ./.github/workflows/build-docker-image.yml
- name: Git checkout for Github repository workspace
uses: actions/checkout@v4

- name: Setup QEMU for multiarch builds
uses: docker/setup-qemu-action@v3

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug

- name: Login to registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push image
uses: docker/build-push-action@v5
with:
context: ./java-corretto
platforms: linux/amd64,linux/arm64
file: ./java-corretto/${{ matrix.tag }}/Dockerfile
push: true
tags: ghcr.io/software-noob/pterodactyl-images:java_${{ matrix.tag }}_corretto
23 changes: 19 additions & 4 deletions .github/workflows/java-dragonwell.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build Java Dragonwell images
name: build java_dragonwell
on:
workflow_dispatch:
schedule:
Expand Down Expand Up @@ -29,12 +29,27 @@ jobs:
- 11
- 17
- 21

steps:
- name: Call reusable build image workflow
uses: ./.github/workflows/build-docker-image.yml
- name: Git checkout for Github repository workspace
uses: actions/checkout@v4

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug

- name: Login to registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push image
uses: docker/build-push-action@v5
with:
context: ./java-dragonwell
platforms: linux/amd64, linux/arm64
file: ./java-dragonwell/${{ matrix.tag }}/Dockerfile
push: true
tags: ghcr.io/software-noob/pterodactyl-images:java_${{ matrix.tag }}_dragonwell
26 changes: 22 additions & 4 deletions .github/workflows/java-graalvm.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build Java GraalVM images
name: build java_graalvm

on:
workflow_dispatch:
Expand Down Expand Up @@ -31,12 +31,30 @@ jobs:
- 17
- 21
- 22

steps:
- name: Call reusable build image workflow
uses: ./.github/workflows/build-docker-image.yml
- name: Git checkout for Github repository workspace
uses: actions/checkout@v4

- name: Setup QEMU for multiarch builds
uses: docker/setup-qemu-action@v3

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug

- name: Login to registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push image
uses: docker/build-push-action@v5
with:
context: ./java-graalvm
platforms: linux/amd64,linux/arm64
file: ./java-graalvm/${{ matrix.tag }}/Dockerfile
push: true
tags: ghcr.io/software-noob/pterodactyl-images:java_${{ matrix.tag }}_graalvm
26 changes: 22 additions & 4 deletions .github/workflows/java-liberica.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build Java Liberica images
name: build java_liberica

on:
workflow_dispatch:
Expand Down Expand Up @@ -31,12 +31,30 @@ jobs:
- 17
- 21
- 22

steps:
- name: Call reusable build image workflow
uses: ./.github/workflows/build-docker-image.yml
- name: Git checkout for Github repository workspace
uses: actions/checkout@v4

- name: Setup QEMU for multiarch builds
uses: docker/setup-qemu-action@v3

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug

- name: Login to registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push image
uses: docker/build-push-action@v5
with:
context: ./java-liberica
platforms: linux/amd64, linux/arm64
file: ./java-liberica/${{ matrix.tag }}/Dockerfile
push: true
tags: ghcr.io/software-noob/pterodactyl-images:java_${{ matrix.tag }}_liberica
20 changes: 18 additions & 2 deletions .github/workflows/java-openj9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,26 @@ jobs:
- 20
- 21
steps:
- name: Call reusable build image workflow
uses: ./.github/workflows/build-docker-image.yml
- name: Git checkout for Github repository workspace
uses: actions/checkout@v4

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug

- name: Login to registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push image
uses: docker/build-push-action@v5
with:
context: ./java-openj9
platforms: linux/amd64,linux/arm64
file: ./java-openj9/${{ matrix.tag }}/Dockerfile
push: true
tags: ghcr.io/software-noob/pterodactyl-images:java_${{ matrix.tag }}_openj9
27 changes: 23 additions & 4 deletions .github/workflows/java-shenandoah.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Java Shenandoah images
name: build java_shenandoah

on:
workflow_dispatch:
Expand Down Expand Up @@ -30,10 +30,29 @@ jobs:
- 11
- 17
steps:
- name: Call reusable build image workflow
uses: ./.github/workflows/build-docker-image.yml
- name: Git checkout for Github repository workspace
uses: actions/checkout@v4

- name: Setup QEMU for multiarch builds
uses: docker/setup-qemu-action@v3

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug

- name: Login to registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push image
uses: docker/build-push-action@v5
with:
context: ./java-shenandoah
platforms: linux/amd64,linux/arm64
dockerfile: ./java-shenandoah/${{ matrix.tag }}/Dockerfile
file: ./java-shenandoah/${{ matrix.tag }}/Dockerfile
push: true
tags: ghcr.io/software-noob/pterodactyl-images:java_${{ matrix.tag }}_shenandoah
30 changes: 24 additions & 6 deletions .github/workflows/java-zulu.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build Java Zulu images
name: build java_zulu

on:
workflow_dispatch:
Expand Down Expand Up @@ -35,12 +35,30 @@ jobs:
- 20
- 21
- 22

steps:
- name: Call reusable build image workflow
uses: ./.github/workflows/build-docker-image.yml
- name: Git checkout for Github repository workspace
uses: actions/checkout@v4

- name: Setup QEMU for multiarch builds
uses: docker/setup-qemu-action@v3

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug

- name: Login to registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push image
uses: docker/build-push-action@v5
with:
context: ./java-zulu
platforms: linux/amd64,linux/arm64
dockerfile: ./java-zulu/${{ matrix.tag }}/Dockerfile
platforms: linux/amd64, linux/arm64
file: ./java-zulu/${{ matrix.tag }}/Dockerfile
push: true
tags: ghcr.io/software-noob/pterodactyl-images:java_${{ matrix.tag }}_zulu
30 changes: 24 additions & 6 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Java images
name: build java

on:
workflow_dispatch:
Expand Down Expand Up @@ -34,12 +34,30 @@ jobs:
- 20
- 21
- 22

steps:
- name: Call reusable build image workflow
uses: ./.github/actions/build-docker-image.yml
- name: Git checkout for Github repository workspace
uses: actions/checkout@v4

- name: Setup QEMU for multiarch builds
uses: docker/setup-qemu-action@v3

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug

- name: Login to registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push image
uses: docker/build-push-action@v5
with:
context: ./java
platforms: linux/amd64,linux/arm64
dockerfile: ./java/${{ matrix.tag }}/Dockerfile
platforms: linux/amd64, linux/arm64
file: ./java/${{ matrix.tag }}/Dockerfile
push: true
tags: ghcr.io/software-noob/pterodactyl-images:java_${{ matrix.tag }}
Loading

0 comments on commit c8ffecf

Please sign in to comment.