-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (46 loc) · 1.53 KB
/
build-gitea.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Build Gitea LXC Image
on:
pull_request:
types:
- opened
- synchronize
- reopened
- closed
branches:
- main
paths:
- '.github/workflows/build-gitea.yml'
- 'templates/gitea.yml'
schedule:
- cron: '0 2 */1 * *'
jobs:
init:
if: github.event.action != 'closed' || (github.event.action == 'closed' && github.event.pull_request.merged)
runs-on: ubuntu-latest
steps:
- name: Get Application version
id: get-app-version
run: |
echo "APP_VERSION=$(curl -s https://dl.gitea.com/gitea/version.json| jq -r '.latest.version' | sed -E 's/^v|V|.+@//')" >> $GITHUB_OUTPUT
outputs:
app_version: ${{steps.get-app-version.outputs.APP_VERSION}}
image-build:
needs: init
strategy:
matrix:
architectures:
- amd64
uses: ./.github/workflows/builder.yml
with:
config_path: templates/gitea.yml
app_name: gitea
app_version: ${{needs.init.outputs.app_version}}
description: Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD.
categories: Git, CI CD, Dev
project_source: https://github.com/go-gitea/gitea
distribution: debian
release: bookworm
architecture: ${{matrix.architectures}}
branch_name: ${{github.event.pull_request.base.ref}}
is_merged: ${{github.event.pull_request.merged || github.event_name == 'schedule'}}
secrets: inherit