From 7220ee5117570b016bd7baecfc3a71f19890dcc5 Mon Sep 17 00:00:00 2001 From: Snoweuph Date: Wed, 29 Jan 2025 21:15:46 +0100 Subject: [PATCH] Move Setup --- .forgejo/workflows/build.yml | 172 +++++++++-------------------------- images/actions/js/Dockerfile | 3 +- 2 files changed, 42 insertions(+), 133 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 41a6923..9594b5b 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -1,4 +1,4 @@ -name: "Build Runner Base" +name: "Build Runner Images" on: schedule: @@ -17,8 +17,8 @@ jobs: registry: git.euph.dev username: ${{ secrets.DEPLOY_USER }} password: ${{ secrets.DEPLOY_SECRET }} - - name: Build and push act base image - id: build_act_base + - name: Build and push base image + id: build_base uses: "https://git.euph.dev/actions/docker-build-push@v5" with: context: "{{defaultContext}}:images/actions/act" @@ -27,13 +27,13 @@ jobs: git.euph.dev/actions/runner-basic:latest git.euph.dev/actions/runner-basic:${{ github.run_number }} - csharp: + extended-latest: runs-on: "docker" needs: - base strategy: matrix: - version: [6, 8] + language: ["go", "js"] steps: - name: Login to Registry uses: "https://git.euph.dev/actions/docker-login@v3" @@ -41,43 +41,48 @@ jobs: registry: git.euph.dev username: ${{ secrets.DEPLOY_USER }} password: ${{ secrets.DEPLOY_SECRET }} - - name: Build and push csharp image + + - name: Build and push ${{ matrix.language }} 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" + context: "{{defaultContext}}:images/actions/${{ matrix.language }}" push: true tags: | - git.euph.dev/actions/runner-go:latest - git.euph.dev/actions/runner-go:${{ github.run_number }} + git.euph.dev/actions/runner-${{ matrix.language }}:latest + git.euph.dev/actions/runner-${{ matrix.language }}:${{ github.run_number }} - java: + extended-versioned: runs-on: "docker" needs: - base strategy: matrix: - version: [8, 17, 21] #No Java 22 jet in Alpine Repos + language: ["php", "lua", "java", "csharp", "redot"] + include: + - language: php + version: 8.2 + - language: php + version: 8.3 + - language: lua + version: 5.1 + - language: lua + version: 5.2 + - language: lua + version: 5.3 + - language: lua + version: 5.4 + - language: java + version: 8 + - language: java + version: 17 + - language: java + version: 21 + - language: csharp + version: 6 + - language: csharp + version: 8 + - language: redot + version: 4.3 steps: - name: Login to Registry uses: "https://git.euph.dev/actions/docker-login@v3" @@ -85,108 +90,13 @@ jobs: 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 + - name: Build and push ${{ matrix.language }} {{ matrix.version }} image uses: "https://git.euph.dev/actions/docker-build-push@v5" with: - context: "{{defaultContext}}:images/actions/js" + context: "{{defaultContext}}:images/actions/${{ matrix.language }}" 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 }} + git.euph.dev/actions/runner-${{ matrix.language }}-${{ matrix.version }}:latest + git.euph.dev/actions/runner-${{ matrix.language }}-${{ matrix.version }}:${{ github.run_number }} diff --git a/images/actions/js/Dockerfile b/images/actions/js/Dockerfile index c1c9883..8dd8e32 100644 --- a/images/actions/js/Dockerfile +++ b/images/actions/js/Dockerfile @@ -1,4 +1,3 @@ FROM git.euph.dev/actions/runner-basic:latest -ARG PACKAGE_VERSION -RUN sudo apk add --no-cache "npm" \ No newline at end of file +RUN sudo apk add --no-cache "npm"