-
Notifications
You must be signed in to change notification settings - Fork 0
185 lines (171 loc) · 6.86 KB
/
autobuild.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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
name: Check for updates and build
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
on:
# Possibility to run it manually
workflow_dispatch:
inputs:
trigger_all_builds:
description: build all images
default: false
type: boolean
required: true
push:
paths:
- ".github/workflows/autobuild.yaml"
- "Dockerfile-scribe"
- "Dockerfile-quetre"
- "Dockerfile-breezewiki"
- "Dockerfile-nitter"
- "Dockerfile-simplytranslate"
- "remote-check.sh"
# Automated
schedule:
# Run Every hour
- cron: "0 * * * *"
jobs:
check-for-updates:
runs-on: ubuntu-latest
outputs:
# quetre: ${{ steps.quetre.outputs.quetre-out-of-date || steps.trigger-all.outputs.build-all }}
scribe: ${{ steps.scribe.outputs.scribe-out-of-date || steps.trigger-all.outputs.build-all }}
breezewiki: ${{ steps.breezewiki.outputs.breezewiki-out-of-date || steps.trigger-all.outputs.build-all }}
nitter: ${{ steps.nitter.outputs.nitter-out-of-date || steps.trigger-all.outputs.build-all }}
simplytranslate: ${{ steps.simplytranslate.outputs.simplytranslate-out-of-date || steps.trigger-all.outputs.build-all }}
# clone repo
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: trigger all builds if requested
if: ${{ github.event.inputs.trigger_all_builds == 'true' }}
id: trigger-all
run: |
echo "build-all=true" >> $GITHUB_OUTPUT
# - name: Pull quetre remote commits
# if: ${{ github.event.inputs.trigger_all_builds == 'false' || github.event.inputs.trigger_all_builds == '' }}
# id: quetre
# run: sh remote-check.sh https://github.com/zyachel/quetre quetre-local.txt build-hashes/quetre.txt quetre-out-of-date
- name: Pull Scribe remote commits
if: ${{ github.event.inputs.trigger_all_builds == 'false' || github.event.inputs.trigger_all_builds == '' }}
id: scribe
run: sh remote-check.sh https://git.sr.ht/~edwardloveall/scribe scribe-local.txt build-hashes/scribe.txt scribe-out-of-date
- name: Pull Breezewiki remote commits
if: ${{ github.event.inputs.trigger_all_builds == 'false' || github.event.inputs.trigger_all_builds == '' }}
id: breezewiki
run: sh remote-check.sh https://gitdab.com/cadence/breezewiki breezewiki-local.txt build-hashes/breezewiki.txt breezewiki-out-of-date
- name: Pull Nitter guest_accounts remote commits
if: ${{ github.event.inputs.trigger_all_builds == 'false' || github.event.inputs.trigger_all_builds == '' }}
id: nitter
run: sh remote-check.sh https://github.com/zedeus/nitter nitter-local.txt build-hashes/nitter.txt nitter-out-of-date guest_accounts
- name: Pull simplytranslate remote commits
if: ${{ github.event.inputs.trigger_all_builds == 'false' || github.event.inputs.trigger_all_builds == '' }}
id: simplytranslate
run: sh remote-check.sh https://codeberg.org/ManeraKai/simplytranslate simplytranslate-local.txt build-hashes/simplytranslate.txt simplytranslate-out-of-date
# build-quetre:
# needs: check-for-updates
# if: ${{ needs.check-for-updates.outputs.quetre == 'true' }}
# uses: FarisZR/Privacy-OCI/.github/workflows/build-workflow.yml@main
# secrets: inherit
# with:
# image_name: fariszr/quetre
# dockerfile: Dockerfile-quetre
# context: .
# license: AGPL-3.0
# clone_repo: ${{ false }}
# hash_file: build-hashes/quetre.txt
# app_name: quetre
# repo: https://github.com/zyachel/quetre
# build_arch: linux/amd64,linux/arm64,linux/arm/v7
# permissions:
# contents: write
# packages: write
# # This is used to complete the identity challenge
# # with sigstore/fulcio when running outside of PRs.
# id-token: write
build-scribe:
needs: check-for-updates
if: ${{ needs.check-for-updates.outputs.quetre == 'true' }}
uses: FarisZR/Privacy-OCI/.github/workflows/build-workflow.yml@main
secrets: inherit
with:
image_name: fariszr/scribe
dockerfile: Dockerfile-scribe
context: ./scribe
license: AGPL-3.0
clone_repo: ${{ true }}
hash_file: build-hashes/scribe.txt
app_name: quetre
repo: https://git.sr.ht/~edwardloveall/scribe
build_arch: linux/amd64,linux/arm64
permissions:
contents: write
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write
build-breezewiki:
needs: check-for-updates
if: ${{ needs.check-for-updates.outputs.breezewiki == 'true' }}
uses: FarisZR/Privacy-OCI/.github/workflows/build-workflow.yml@main
secrets: inherit
with:
image_name: fariszr/breezewiki
dockerfile: Dockerfile-breezewiki
context: ./breezewiki
license: AGPL-3.0
clone_repo: ${{ true }}
hash_file: build-hashes/breezewiki.txt
app_name: breezewiki
repo: https://gitdab.com/cadence/breezewiki
build_arch: linux/amd64
permissions:
contents: write
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write
build-nitter:
needs: check-for-updates
if: ${{ needs.check-for-updates.outputs.nitter == 'true' }}
uses: FarisZR/Privacy-OCI/.github/workflows/build-workflow.yml@main
secrets: inherit
with:
image_name: fariszr/nitter
dockerfile: Dockerfile-nitter
context: ./nitter
license: AGPL-3.0
clone_repo: ${{ true }}
hash_file: build-hashes/nitter.txt
app_name: nitter
branch: guest_accounts
repo: https://github.com/zedeus/nitter
build_arch: linux/amd64, linux/arm64
permissions:
contents: write
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write
build-simplytranslate:
needs: check-for-updates
if: ${{ needs.check-for-updates.outputs.simplytranslate == 'true' }}
uses: FarisZR/Privacy-OCI/.github/workflows/build-workflow.yml@main
secrets: inherit
with:
image_name: fariszr/simplytranslate
dockerfile: Dockerfile-simplytranslate
context: ./simplytranslate
license: AGPL-3.0
clone_repo: ${{ true }}
hash_file: build-hashes/simplytranslate.txt
app_name: simplytranslate
repo: https://codeberg.org/ManeraKai/simplytranslate
build_arch: linux/amd64, linux/arm64
permissions:
contents: write
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
id-token: write