Update yolks.yml

This commit is contained in:
Dane Everitt 2021-05-15 12:29:47 -07:00
parent ee444da25a
commit a34778013d
7 changed files with 30 additions and 85 deletions

View file

@ -1,13 +1,15 @@
name: build games
on: on:
schedule:
- cron: "0 0 * * 1"
push: push:
branches: branches:
- tt_master - master
paths: paths:
- tt_games/** - games/**
jobs: jobs:
push: push:
name: "games:${{ matrix.tag }}" name: "games:${{ matrix.game }}"
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
@ -28,9 +30,9 @@ jobs:
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN }}
- uses: docker/build-push-action@v2 - uses: docker/build-push-action@v2
with: with:
context: ./games context: ./games/${{ matrix.game }}
file: ./games/${{ matrix.game }}/Dockerfile file: ./games/${{ matrix.game }}/Dockerfile
platforms: linux/amd64 platforms: linux/amd64
push: true push: true
tags: | tags: |
ghcr.io/pterodactyl/games:${{ matrix.tag }} ghcr.io/pterodactyl/games:${{ matrix.game }}

View file

@ -1,10 +1,12 @@
name: build go
on: on:
schedule:
- cron: "0 0 * * 1"
push: push:
branches: branches:
- master - master
paths: paths:
- tt_go/** - go/**
jobs: jobs:
push: push:
name: "yolks:go_${{ matrix.tag }}" name: "yolks:go_${{ matrix.tag }}"

View file

@ -1,13 +1,15 @@
name: build installers
on: on:
schedule:
- cron: "0 0 * * 1"
push: push:
branches: branches:
- tt_master - master
paths: paths:
- installers/** - installers/**
jobs: jobs:
push: push:
name: "yolk_installers:{{ matrix.tag }}" name: "installers:{{ matrix.tag }}"
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
@ -33,4 +35,4 @@ jobs:
platforms: linux/amd64 platforms: linux/amd64
push: true push: true
tags: | tags: |
ghcr.io/pterodactyl/yolk_installers:${{ matrix.tag }} ghcr.io/pterodactyl/installers:${{ matrix.tag }}

View file

@ -1,10 +1,12 @@
name: build java
on: on:
schedule:
- cron: "0 0 * * 1"
push: push:
branches: branches:
- master - master
paths: paths:
- tt_java/** - java/**
jobs: jobs:
push: push:
name: "yolks:java_${{ matrix.tag }}" name: "yolks:java_${{ matrix.tag }}"

View file

@ -1,10 +1,12 @@
name: build nodejs
on: on:
schedule:
- cron: "0 0 * * 1"
push: push:
branches: branches:
- master - master
paths: paths:
- tt_nodejs/* - nodejs/*
jobs: jobs:
push: push:
name: "yolks:nodejs_${{ matrix.tag }}" name: "yolks:nodejs_${{ matrix.tag }}"

View file

@ -1,10 +1,12 @@
name: build python
on: on:
schedule:
- cron: "0 0 * * 1"
push: push:
branches: branches:
- master - master
paths: paths:
- tt_python/** - python/**
jobs: jobs:
push: push:
name: "yolks:python_${{ matrix.tag }}" name: "yolks:python_${{ matrix.tag }}"

View file

@ -1,67 +0,0 @@
on:
push:
branches:
- master
paths-ignore:
- games
- installers
jobs:
changes:
runs-on: ubuntu-latest
outputs:
images: ${{ steps.filter.outputs.changes }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
base: HEAD
filters: |
alpine: alpine
go_1.14: go/1.14
go_1.15: go/1.15
go_1.16: go/1.16
python_3.7: python/3.7
python_3.8: python/3.8
python_3.9: python/3.9
nodejs_12: nodejs/12
nodejs_13: nodejs/13
nodejs_14: nodejs/14
nodejs_15: nodejs/15
java_7: java/7
java_8: java/8
java_9: java/9
java_11: java/11
java_14: java/14
java_16: java/16
push:
needs: changes
# name: "yolks:python_${{ matrix.tag }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image: ${{ fromJSON(needs.changes.outputs.images) }}
steps:
- uses: actions/checkout@v2
- run: |
echo "${{ matrix.image }}"
# - uses: docker/setup-buildx-action@v1
# with:
# version: "v0.5.1"
# buildkitd-flags: --debug
# - uses: docker/login-action@v1
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.REGISTRY_TOKEN }}
# - uses: docker/build-push-action@v2
# with:
# context: ./python
# file: ./python/${{ matrix.tag }}/Dockerfile
# platforms: linux/amd64
# push: true
# tags: |
# ghcr.io/pterodactyl/yolks:python_${{ matrix.tag }}