2024-02-06 22:56:18 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
|
|
|
|
jobs:
|
2024-03-03 15:48:59 +00:00
|
|
|
build_act:
|
2024-04-26 22:05:43 +00:00
|
|
|
runs-on: 'priviliged'
|
2024-02-06 22:56:18 +00:00
|
|
|
steps:
|
2024-04-26 22:33:21 +00:00
|
|
|
- name: Install Docker
|
|
|
|
run: curl -fsSL https://get.docker.com | sh
|
2024-02-10 16:36:53 +00:00
|
|
|
- name: Set up QEMU
|
|
|
|
uses: 'https://git.euph.dev/actions/docker-setup-qemu@v3'
|
2024-02-06 22:56:18 +00:00
|
|
|
- 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 }}
|
2024-03-03 15:48:59 +00:00
|
|
|
- name: Build and push act base image
|
|
|
|
id: build_act_base
|
2024-02-06 22:56:18 +00:00
|
|
|
uses: 'https://git.euph.dev/actions/docker-build-push@v5'
|
|
|
|
with:
|
2024-02-10 17:08:15 +00:00
|
|
|
context: "{{defaultContext}}:images/actions/act"
|
2024-02-10 16:49:12 +00:00
|
|
|
push: true
|
2024-02-10 17:21:45 +00:00
|
|
|
tags: |
|
2024-03-03 15:48:59 +00:00
|
|
|
git.euph.dev/actions/runner-basic:latest
|
2024-04-24 18:45:57 +00:00
|
|
|
git.euph.dev/actions/runner-basic:${{ gitea.run_number }}
|
2024-03-03 15:48:59 +00:00
|
|
|
|
2024-03-03 16:20:49 +00:00
|
|
|
build_php:
|
2024-04-26 22:05:43 +00:00
|
|
|
runs-on: 'priviliged'
|
2024-03-03 16:35:20 +00:00
|
|
|
needs: build_act
|
2024-04-26 22:38:38 +00:00
|
|
|
container:
|
2024-04-26 22:57:12 +00:00
|
|
|
image: "git.euph.dev/actions/runner-basic:138"
|
2024-03-03 15:48:59 +00:00
|
|
|
strategy:
|
2024-03-03 16:45:48 +00:00
|
|
|
matrix:
|
2024-04-26 22:33:21 +00:00
|
|
|
version: [8.1, 8.2, 8.3]
|
2024-03-03 15:48:59 +00:00
|
|
|
steps:
|
2024-03-03 15:54:06 +00:00
|
|
|
- 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 }}
|
2024-03-04 22:43:31 +00:00
|
|
|
- name: Build and push php image
|
2024-04-22 21:21:01 +00:00
|
|
|
id: build_act_php
|
2024-03-03 15:48:59 +00:00
|
|
|
uses: 'https://git.euph.dev/actions/docker-build-push@v5'
|
|
|
|
with:
|
2024-03-03 16:20:49 +00:00
|
|
|
context: "{{defaultContext}}:images/actions/php"
|
2024-03-03 15:48:59 +00:00
|
|
|
push: true
|
2024-04-25 15:00:58 +00:00
|
|
|
build-args: PACKAGE_VERSION=${{ matrix.version }}
|
2024-03-03 15:48:59 +00:00
|
|
|
tags: |
|
2024-03-03 17:34:13 +00:00
|
|
|
git.euph.dev/actions/runner-php-${{ matrix.version }}:latest
|
2024-04-25 08:02:40 +00:00
|
|
|
git.euph.dev/actions/runner-php-${{ matrix.version }}:${{ gitea.run_number }}
|
|
|
|
|
|
|
|
build_java:
|
2024-04-26 22:05:43 +00:00
|
|
|
runs-on: 'priviliged'
|
2024-04-25 08:02:40 +00:00
|
|
|
needs: build_act
|
2024-04-26 22:38:38 +00:00
|
|
|
container:
|
2024-04-26 22:57:12 +00:00
|
|
|
image: "git.euph.dev/actions/runner-basic:138"
|
2024-04-25 08:02:40 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-04-26 22:24:11 +00:00
|
|
|
version: [8, 17, 21]
|
2024-04-25 08:02:40 +00:00
|
|
|
steps:
|
|
|
|
- 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
|
2024-04-25 15:00:58 +00:00
|
|
|
build-args: PACKAGE_VERSION=${{ matrix.version }}
|
2024-04-25 08:02:40 +00:00
|
|
|
tags: |
|
|
|
|
git.euph.dev/actions/runner-java-${{ matrix.version }}:latest
|
2024-04-25 14:57:00 +00:00
|
|
|
git.euph.dev/actions/runner-java-${{ matrix.version }}:${{ gitea.run_number }}
|