-
Notifications
You must be signed in to change notification settings - Fork 1
100 lines (85 loc) · 2.7 KB
/
old-old-debian.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
name: get Bo, Hamm, Slink & Potato rootfs
env:
DEBIAN_FRONTEND: noninteractive
GET_BASE_DISK_LOG: debug
on:
push:
# branches:
# - master
paths:
- ".github/workflows/old-old-debian.yml"
jobs:
build:
strategy:
fail-fast: true
matrix:
include:
- ver: 1.3
release_tag: 1.3
# sleep: 0
ron: digests.ron
yaml: digests.yml
# - ver: 2.0
# sleep: 20
# ron: digests.ron
# yaml: digests.yml
# - ver: 2.1
# sleep: 40
# ron: digests.ron
# yaml: digests.yml
# - ver: 2.2
# tag: base
# sleep: 50
# ron: digests.base.ron
# yaml: digests.base.yml
runs-on: ubuntu-latest
# defaults:
# run:
# shell: zsh -f -e {0}
steps:
# - name: get-base-disk.bin
# run: docker run -i --rm -v /usr/local/bin:/host reg.tmoe.me:2096/rs/get-base-disk:x64 cp get-base-disk /host
# - name: download rootfs
# run: |
# get-base-disk --os debian --ver ${{matrix.ver}} --tag base --obtain --repack --zstd-level 6
# - name: Login to GHCR
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Login to REG
# uses: docker/login-action@v3
# with:
# registry: reg.tmoe.me:2096
# username: "robot$debian+bot_actions_2024"
# password: ${{ secrets.REG_TOKEN }}
# - name: build & push docker
# run: |
# get-base-disk --os debian --ver ${{matrix.ver}} --tag base --build --push --create-manifest --update-repo-digest
# - name: generate digests
# run: |
# get-base-disk --os debian --ver ${{matrix.ver}} --tag base --digest ${{matrix.yaml}}
# get-base-disk --os debian --ver ${{matrix.ver}} --tag base --digest ${{matrix.ron}}
- name: create files.json
run: |
mkdir -p tmp/zstd
touch tmp/zstd/{a,b}.zst
echo 'test: true' > tmp/digests.yml
files=""
for i in tmp/zstd/*zst; do
files+=$i$'\n'
done
for i in tmp/digests.*; do
files+=$i$'\n'
done
printf "%s\n" RELEASE=$files >>"$GITHUB_ENV"
echo '```yaml' > digests.md
# cat tmp/${{matrix.yaml}} >> digests.md
echo '```' >> digests.md
- name: release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{matrix.release_tag}}
files: ${{ env.RELEASE }}
body_path: digests.md