From 01f069e61cd43de67f3f88e637e84b422219d369 Mon Sep 17 00:00:00 2001 From: Snoweuph Date: Thu, 25 Apr 2024 08:02:40 +0000 Subject: [PATCH] .gitea/workflows/action.yml aktualisiert --- .gitea/workflows/action.yml | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/action.yml b/.gitea/workflows/action.yml index 0b470a0..0c4c7b4 100644 --- a/.gitea/workflows/action.yml +++ b/.gitea/workflows/action.yml @@ -58,4 +58,33 @@ jobs: push: true tags: | git.euph.dev/actions/runner-php-${{ matrix.version }}:latest - git.euph.dev/actions/runner-php:${{ gitea.run_number }} \ No newline at end of file + git.euph.dev/actions/runner-php-${{ matrix.version }}:${{ gitea.run_number }} + + build_java: + runs-on: 'ubuntu-latest' + needs: build_act + strategy: + matrix: + version: [21] + steps: + - name: Install Docker + run: curl -fsSL https://get.docker.com | sh + - name: Set up QEMU + uses: 'https://git.euph.dev/actions/docker-setup-qemu@v3' + - name: Setup Buildx + uses: 'https://git.euph.dev/actions/docker-setup-buildx@v3' + - 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 + id: build_act_java + uses: 'https://git.euph.dev/actions/docker-build-push@v5' + with: + context: "{{defaultContext}}:images/actions/java" + push: true + tags: | + git.euph.dev/actions/runner-java-${{ matrix.version }}:latest + git.euph.dev/actions/runner-java-${{ matrix.version }}:${{ gitea.run_number }} \ No newline at end of file