.gitea/workflows/action.yml aktualisiert

This commit is contained in:
Snoweuph 2024-05-09 10:28:22 +00:00
parent 25a2beaccd
commit 6553971331

View file

@ -10,7 +10,7 @@ jobs:
runs-on: 'priviliged' runs-on: 'priviliged'
steps: steps:
- name: Install Docker - name: Install Docker
run: "rm $(which docker) && curl -fsSL https://get.docker.com | sh" run: 'rm $(which docker) && curl -fsSL https://get.docker.com | sh'
- name: Set up QEMU - name: Set up QEMU
uses: 'https://git.euph.dev/actions/docker-setup-qemu@v3' uses: 'https://git.euph.dev/actions/docker-setup-qemu@v3'
- name: Setup Buildx - name: Setup Buildx
@ -25,45 +25,45 @@ jobs:
id: build_act_base id: build_act_base
uses: 'https://git.euph.dev/actions/docker-build-push@v5' uses: 'https://git.euph.dev/actions/docker-build-push@v5'
with: with:
context: "{{defaultContext}}:images/actions/act" context: '{{defaultContext}}:images/actions/act'
push: true push: true
tags: | tags: |
git.euph.dev/actions/runner-basic:latest git.euph.dev/actions/runner-basic:latest
git.euph.dev/actions/runner-basic:${{ gitea.run_number }} git.euph.dev/actions/runner-basic:${{ gitea.run_number }}
build_act_images: build_act_images:
runs-on: 'priviliged' runs-on: 'priviliged'
needs: build_act needs: build_act
strategy: strategy:
matrix: matrix:
language: [java, php, lua] language: [java, php, lua]
include: include:
- version: [8, 17, 21] - version: [8, 17, 21]
language: java language: java
- version: [8.1, 8.2, 8.3] - version: [8.1, 8.2, 8.3]
language: php language: php
- version: [5.1, 5.2, 5.3, 5.4] - version: [5.1, 5.2, 5.3, 5.4]
language: lua language: lua
steps: steps:
- name: Install Docker - name: Install Docker
run: "rm $(which docker) && curl -fsSL https://get.docker.com | sh" run: 'rm $(which docker) && curl -fsSL https://get.docker.com | sh'
- name: Set up QEMU - name: Set up QEMU
uses: 'https://git.euph.dev/actions/docker-setup-qemu@v3' uses: 'https://git.euph.dev/actions/docker-setup-qemu@v3'
- name: Setup Buildx - name: Setup Buildx
uses: 'https://git.euph.dev/actions/docker-setup-buildx@v3' uses: 'https://git.euph.dev/actions/docker-setup-buildx@v3'
- name: Login to Registry - name: Login to Registry
uses: 'https://git.euph.dev/actions/docker-login@v3' uses: 'https://git.euph.dev/actions/docker-login@v3'
with: with:
registry: git.euph.dev registry: git.euph.dev
username: ${{ secrets.DEPLOY_USER }} username: ${{ secrets.DEPLOY_USER }}
password: ${{ secrets.DEPLOY_SECRET }} password: ${{ secrets.DEPLOY_SECRET }}
- name: Build and push ${{ matrix.language }} image - name: Build and push ${{ matrix.language }} image
id: build_act_${{ matrix.language }} id: build_act_${{ matrix.language }}
uses: 'https://git.euph.dev/actions/docker-build-push@v5' uses: 'https://git.euph.dev/actions/docker-build-push@v5'
with: with:
context: "{{defaultContext}}:images/actions/${{ matrix.language }}" context: '{{defaultContext}}:images/actions/${{ matrix.language }}'
push: true push: true
build-args: PACKAGE_VERSION=${{ matrix.version }} build-args: PACKAGE_VERSION=${{ matrix.version }}
tags: | tags: |
git.euph.dev/actions/runner-${{ matrix.language }}-${{ matrix.version }}:latest git.euph.dev/actions/runner-${{ matrix.language }}-${{ matrix.version }}:latest
git.euph.dev/actions/runner-${{ matrix.language }}-${{ matrix.version }}:${{ gitea.run_number }} git.euph.dev/actions/runner-${{ matrix.language }}-${{ matrix.version }}:${{ gitea.run_number }}