-
Notifications
You must be signed in to change notification settings - Fork 315
/
Copy pathgitea.yaml
81 lines (73 loc) · 2.52 KB
/
gitea.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
package:
name: gitea
version: "1.23.5"
epoch: 0
description: self-hosted git service
copyright:
- license: MIT
environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- go
- nodejs
- npm
pipeline:
- uses: git-checkout
with:
expected-commit: 92f2d904f0d33d6a6a7f1a53dbe00ad38b135cce
repository: https://github.com/go-gitea/gitea
tag: v${{package.version}}
- runs: |
set -x
npm install --no-save
BROWSERSLIST_IGNORE_OLD_DATA=true npx webpack
- runs: |
set -x
CC= GOOS= GOARCH= CGO_ENABLED=0 go generate -tags 'bindata timetzdata sqlite sqlite_unlock_notify' ./...
- uses: go/build
with:
packages: .
ldflags: -X "main.Version=v${{package.version}}"
output: gitea
tags: netgo,osusergo,bindata,timetzdata,sqlite,sqlite_unlock_notify
subpackages:
- name: ${{package.name}}-compat
description: "Compatibility package for working with upstream docs"
pipeline:
- runs: |
set -x
mkdir -p "${{targets.subpkgdir}}"/usr/local/bin
cp docker/rootless/usr/local/bin/docker-entrypoint.sh "${{targets.subpkgdir}}"/usr/local/bin
cp docker/rootless/usr/local/bin/docker-setup.sh "${{targets.subpkgdir}}"/usr/local/bin
cp docker/rootless/usr/local/bin/gitea "${{targets.subpkgdir}}"/usr/local/bin
chmod 755 \
"${{targets.subpkgdir}}"/usr/local/bin/docker-entrypoint.sh \
"${{targets.subpkgdir}}"/usr/local/bin/docker-setup.sh \
"${{targets.subpkgdir}}"/usr/local/bin/gitea
mkdir -p "${{targets.subpkgdir}}"/etc/profile.d
cp contrib/autocompletion/bash_autocomplete "${{targets.subpkgdir}}"/etc/profile.d/gitea_bash_autocomplete.sh
chmod 644 "${{targets.subpkgdir}}"/etc/profile.d/gitea_bash_autocomplete.sh
mkdir -p "${{targets.subpkgdir}}"/etc/templates
cp docker/rootless/etc/templates/app.ini "${{targets.subpkgdir}}"/etc/templates
mkdir -p "${{targets.subpkgdir}}"/app/gitea
ln -sf /usr/bin/gitea "${{targets.subpkgdir}}"/app/gitea/gitea
- uses: go/build
with:
packages: contrib/environment-to-ini/environment-to-ini.go
prefix: usr/local
output: environment-to-ini
test:
pipeline:
- name: Verify Gitea
runs: |
# Check if binary runs
/usr/bin/gitea --help
gitea --version
gitea --help
update:
enabled: true
github:
identifier: go-gitea/gitea
strip-prefix: v