-
Notifications
You must be signed in to change notification settings - Fork 18
46 lines (41 loc) · 1.31 KB
/
sync_debian_repository.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
name: ✨ Sync Debian repository
on:
push:
branches:
- main
jobs:
sync_repository:
runs-on: ubuntu-latest
container:
image: ghcr.io/upciti/ops2deb:latest
options: --user root
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install wakemebot
uses: upciti/wakemeops-action@v1
with:
packages: |
wakemebot
- name: Print ops2deb and wakemebot versions
run: |
ops2deb version
wakemebot version
- name: Sync WakeMeOps Debian repository
shell: bash
env:
WAKEMEBOT_APTLY_SERVER_URL: ${{ secrets.WAKEMEBOT_APTLY_SERVER_URL }}
WAKEMEBOT_APTLY_CA_CERT: ${{ secrets.WAKEMEBOT_APTLY_CA_CERT }}
WAKEMEBOT_APTLY_CLIENT_CERT: ${{ secrets.WAKEMEBOT_APTLY_CLIENT_CERT }}
WAKEMEBOT_APTLY_CLIENT_KEY: ${{ secrets.WAKEMEBOT_APTLY_CLIENT_KEY }}
OPS2DEB_EXIT_CODE: 0
run: |
mkdir -p build
ops2deb delta -r "http://deb.wakemeops.com/wakemeops stable" --json 1> build/ops2deb-delta.json
for component in desktop dev devops secops terminal; do
make "build-${component}"
wakemebot sync build
rm -rf "build/${component}"
done