yolks/.github/workflows/games.yml

39 lines
912 B
YAML
Raw Normal View History

2021-05-15 21:29:47 +02:00
name: build games
on:
workflow_dispatch:
2021-05-15 21:29:47 +02:00
schedule:
- cron: "0 0 1 * *"
push:
branches:
2021-05-15 21:29:47 +02:00
- master
paths:
2021-05-15 21:29:47 +02:00
- games/**
jobs:
push:
2021-05-15 21:29:47 +02:00
name: "games:${{ matrix.game }}"
2024-08-08 02:18:47 +02:00
runs-on: node1
strategy:
fail-fast: false
matrix:
game:
- source
- rust
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
2024-07-15 19:01:47 +02:00
password: ${{ secrets.GP_TOKEN }}
- uses: docker/build-push-action@v4
with:
2021-05-15 21:29:47 +02:00
context: ./games/${{ matrix.game }}
file: ./games/${{ matrix.game }}/Dockerfile
platforms: linux/amd64
push: true
tags: |
2021-05-15 21:29:47 +02:00
ghcr.io/pterodactyl/games:${{ matrix.game }}