yolks/.github/workflows/games.yml

40 lines
943 B
YAML
Raw Permalink 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-09-04 17:52:23 +02:00
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
game:
- source
- rust
2024-09-14 14:12:55 +02:00
- havana
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: |
2024-08-08 10:46:37 +02:00
ghcr.io/thundernetworkrad/games:${{ matrix.game }}