Skip to content

Build Docker Image

Build Docker Image #29

Workflow file for this run

name: Build Docker Image
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
- cron: "0 0 * * 1"
push:
branches:
- main
paths:
- .github/workflows/games-docker.yml
- games/**
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
jobs:
push:
name: "dotnet:${{ matrix.tag }}"
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write
strategy:
fail-fast: false
matrix:
tag:
- minetest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
context: games/${{ matrix.tag }}
file: games/${{ matrix.tag }}/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/nexocrew-HQ/moonlightdockerimages:${{ matrix.tag }}