runner-images/.forgejo/workflows/build.yml

193 lines
6.1 KiB
YAML
Raw Normal View History

2025-01-29 20:52:20 +01:00
name: "Build Runner Base"
on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- "master"
jobs:
base:
runs-on: "docker"
steps:
- name: Login to Registry
uses: "https://git.euph.dev/actions/docker-login@v3"
with:
registry: git.euph.dev
username: ${{ secrets.DEPLOY_USER }}
password: ${{ secrets.DEPLOY_SECRET }}
- name: Build and push act base image
id: build_act_base
uses: "https://git.euph.dev/actions/docker-build-push@v5"
with:
context: "{{defaultContext}}:images/actions/act"
push: true
tags: |
git.euph.dev/actions/runner-basic:latest
git.euph.dev/actions/runner-basic:${{ github.run_number }}
csharp:
runs-on: "docker"
needs:
- base
strategy:
matrix:
version: [6, 8]
steps:
- name: Login to Registry
uses: "https://git.euph.dev/actions/docker-login@v3"
with:
registry: git.euph.dev
username: ${{ secrets.DEPLOY_USER }}
password: ${{ secrets.DEPLOY_SECRET }}
- name: Build and push csharp image
uses: "https://git.euph.dev/actions/docker-build-push@v5"
with:
context: "{{defaultContext}}:images/actions/csharp"
push: true
build-args: PACKAGE_VERSION=${{ matrix.version }}
tags: |
git.euph.dev/actions/runner-csharp-${{ matrix.version }}:latest
git.euph.dev/actions/runner-csharp-${{ matrix.version }}:${{ github.run_number }}
go:
runs-on: "docker"
needs:
- base
steps:
- name: Login to Registry
uses: "https://git.euph.dev/actions/docker-login@v3"
with:
registry: git.euph.dev
username: ${{ secrets.DEPLOY_USER }}
password: ${{ secrets.DEPLOY_SECRET }}
- name: Build and push Go image
uses: "https://git.euph.dev/actions/docker-build-push@v5"
with:
context: "{{defaultContext}}:images/actions/go"
push: true
tags: |
git.euph.dev/actions/runner-go:latest
git.euph.dev/actions/runner-go:${{ github.run_number }}
java:
runs-on: "docker"
needs:
- base
strategy:
matrix:
version: [8, 17, 21] #No Java 22 jet in Alpine Repos
steps:
- name: Login to Registry
uses: "https://git.euph.dev/actions/docker-login@v3"
with:
registry: git.euph.dev
username: ${{ secrets.DEPLOY_USER }}
password: ${{ secrets.DEPLOY_SECRET }}
- name: Build and push java image
uses: "https://git.euph.dev/actions/docker-build-push@v5"
with:
context: "{{defaultContext}}:images/actions/java"
push: true
build-args: PACKAGE_VERSION=${{ matrix.version }}
tags: |
git.euph.dev/actions/runner-java-${{ matrix.version }}:latest
git.euph.dev/actions/runner-java-${{ matrix.version }}:${{ github.run_number }}
js:
runs-on: "docker"
needs:
- base
strategy:
matrix:
version: [latest]
steps:
- name: Login to Registry
uses: "https://git.euph.dev/actions/docker-login@v3"
with:
registry: git.euph.dev
username: ${{ secrets.DEPLOY_USER }}
password: ${{ secrets.DEPLOY_SECRET }}
- name: Build and push JS image
uses: "https://git.euph.dev/actions/docker-build-push@v5"
with:
context: "{{defaultContext}}:images/actions/js"
push: true
build-args: PACKAGE_VERSION=${{ matrix.version }}
tags: |
git.euph.dev/actions/runner-js-${{ matrix.version }}:latest
git.euph.dev/actions/runner-js-${{ matrix.version }}:${{ github.run_number }}
lua:
runs-on: "docker"
needs:
- base
strategy:
matrix:
version: [5.1, 5.2, 5.3, 5.4]
steps:
- name: Login to Registry
uses: "https://git.euph.dev/actions/docker-login@v3"
with:
registry: git.euph.dev
username: ${{ secrets.DEPLOY_USER }}
password: ${{ secrets.DEPLOY_SECRET }}
- name: Build and push Lua image
uses: "https://git.euph.dev/actions/docker-build-push@v5"
with:
context: "{{defaultContext}}:images/actions/lua"
push: true
build-args: PACKAGE_VERSION=${{ matrix.version }}
tags: |
git.euph.dev/actions/runner-lua-${{ matrix.version }}:latest
git.euph.dev/actions/runner-lua-${{ matrix.version }}:${{ github.run_number }}
php:
runs-on: "docker"
needs:
- base
strategy:
matrix:
version: [8.2, 8.3]
steps:
- name: Login to Registry
uses: "https://git.euph.dev/actions/docker-login@v3"
with:
registry: git.euph.dev
username: ${{ secrets.DEPLOY_USER }}
password: ${{ secrets.DEPLOY_SECRET }}
- name: Build and push php image
uses: "https://git.euph.dev/actions/docker-build-push@v5"
with:
context: "{{defaultContext}}:images/actions/php"
push: true
build-args: PACKAGE_VERSION=${{ matrix.version }}
tags: |
git.euph.dev/actions/runner-php-${{ matrix.version }}:latest
git.euph.dev/actions/runner-php-${{ matrix.version }}:${{ github.run_number }}
redot:
runs-on: "docker"
needs:
- base
strategy:
matrix:
version: [4.3]
steps:
- name: Login to Registry
uses: "https://git.euph.dev/actions/docker-login@v3"
with:
registry: git.euph.dev
username: ${{ secrets.DEPLOY_USER }}
password: ${{ secrets.DEPLOY_SECRET }}
- name: Build and push Godot image
uses: "https://git.euph.dev/actions/docker-build-push@v5"
with:
context: "{{defaultContext}}:images/actions/redot"
push: true
build-args: PACKAGE_VERSION=${{ matrix.version }}
tags: |
git.euph.dev/actions/runner-redot-${{ matrix.version }}:latest
git.euph.dev/actions/runner-redot-${{ matrix.version }}:${{ forgejo.run_number }}