mirror of
https://github.com/darksaid98/ptero-nginx-egg.git
synced 2026-12-03 22:20:59 +00:00
Update release-ptero-nginx.yml
This commit is contained in:
1 parent
e3d741a555
commit
f5c7216ecd
1 file changed
+42
-6
@@ -2,10 +2,27 @@ name: Pterodactyl-Ubuntu
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
imagename:
|
||||||
|
description: 'Image Name'
|
||||||
|
required: true
|
||||||
|
default: 'error'
|
||||||
|
imageversion:
|
||||||
|
description: 'Version of the docker image'
|
||||||
|
required: true
|
||||||
|
default: '1.0'
|
||||||
|
imagedir:
|
||||||
|
description: 'Directory of the image'
|
||||||
|
required: true
|
||||||
|
default: 'default'
|
||||||
|
platform:
|
||||||
|
description: 'Egg platforms. amd64 for AMD64, arm64 for Arm64, and both for both of them'
|
||||||
|
required: true
|
||||||
|
default: 'both'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
push:
|
push:
|
||||||
name: "nginx-ptero:latest"
|
name: "nginx-ptero:${{ github.event.inputs.imagename }}"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -14,18 +31,37 @@ jobs:
|
|||||||
- uses: docker/setup-qemu-action@v1
|
- uses: docker/setup-qemu-action@v1
|
||||||
- uses: docker/setup-buildx-action@v1
|
- uses: docker/setup-buildx-action@v1
|
||||||
with:
|
with:
|
||||||
version: "v0.5.1"
|
version: "${{ github.event.inputs.imageversion }}"
|
||||||
buildkitd-flags: --debug
|
buildkitd-flags: --debug
|
||||||
- uses: docker/login-action@v1
|
- uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.PUSH_TOKEN }}
|
password: ${{ secrets.PUSH_TOKEN }}
|
||||||
- uses: docker/build-push-action@v2
|
- if: github.event.inputs.platform == 'both'
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: ./
|
context: ./${{ github.event.inputs.imagedir }}/
|
||||||
file: ./Dockerfile
|
file: ./${{ github.event.inputs.imagedir }}/Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/finnie2006/nginx-ptero:latest
|
ghcr.io/JohnB17/nginx-ptero:${{ github.event.inputs.imagename }}
|
||||||
|
- if: github.event.inputs.platform == 'amd64'
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: ./${{ github.event.inputs.imagedir }}/
|
||||||
|
file: ./${{ github.event.inputs.imagedir }}/Dockerfile
|
||||||
|
platforms: linux/amd64
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
ghcr.io/JohnB17/nginx-ptero:${{ github.event.inputs.imagename }}
|
||||||
|
- if: github.event.inputs.platform == 'arm64'
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: ./${{ github.event.inputs.imagedir }}/
|
||||||
|
file: ./${{ github.event.inputs.imagedir }}/Dockerfile
|
||||||
|
platforms: linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
ghcr.io/JohnB17/nginx-ptero:${{ github.event.inputs.imagename }}
|
||||||
Reference in new issue
Block a user