~xenrox/#34

success

86afe91Thorben Günther

publish: Move fingerprint conversion to config parsing

Owner
~xenrox
Created
8 months ago
Updated
8 months ago
Build manifest
view manifest »

Tasks

view log »
test view log »
lint view log »
build view log »
gofmt view log »
dev-image view log »
go to bottom »
go to top »
setup
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
[#34] 2023/08/27 22:38:08 Booting image archlinux (default) on port 22645
[#34] 2023/08/27 22:38:08 Waiting for guest to settle
[#34] 2023/08/27 22:38:17 Sending tasks
[#34] 2023/08/27 22:38:19 Sending build environment
[#34] 2023/08/27 22:38:19 Sending secrets
[#34] 2023/08/27 22:38:19 Resolving secret 2b44595c-3464-4c2d-a8df-c5dea8e90c4c
[#34] 2023/08/27 22:38:20 Installing packages
Warning: Permanently added '[localhost]:22645' (ED25519) to the list of known hosts.
(1/1) core.db (0)
core.db (132583/132583) 100%
(2/2) core.db.sig (0)
extra.db (8687748/8687748) 100%
(1/2) core.db.sig (0)
(1/1) extra.db.sig (0)
Warning: Permanently added '[localhost]:22645' (ED25519) to the list of known hosts.
linux: ignoring package upgrade (6.4.11.arch2-1 => 6.4.12.arch1-1)
Resolving dependencies...
Checking package conflicts...
installing core/iana-etc (20230629-1 -> 20230803-1)
installing core/zlib (1:1.2.13-3 -> 1:1.3-1)
installing core/sqlite (3.42.0-1 -> 3.43.0-1)
installing core/json-c (0.16-1 -> 0.17-1)
installing core/gpgme (1.21.0-1 -> 1.22.0-1)
installing core/pacman-mirrorlist (20230628-1 -> 20230820-1)
installing core/mpfr (4.2.0.p12-3 -> 4.2.1-1)
installing core/archlinux-keyring (20230704-1 -> 20230821-1)
installing extra/git (2.41.0-2 -> 2.42.0-1)

Download Size:     10.36 M
Installed Size:    42.77 M
Size Delta:       626.36 K
Downloading packages...
(1/1) git-2.42.0-1-x86_64.pkg.tar.zst (0)
archlinux-keyring-20230821-1-any.pkg.tar.zst (1191950/1191950) 100%
(2/5) sqlite-3.43.0-1-x86_64.pkg.tar.zst (196608/1706514) 11%
gpgme-1.22.0-1-x86_64.pkg.tar.zst (493286/493286) 100%
(3/5) mpfr-4.2.1-1-x86_64.pkg.tar.zst (360448/438215) 82%
mpfr-4.2.1-1-x86_64.pkg.tar.zst (438215/438215) 100%
(4/5) gpgme-1.22.0-1-x86_64.pkg.tar.zst.sig (119/119) 100%
archlinux-keyring-20230821-1-any.pkg.tar.zst.sig (119/119) 100%
(1/4) git-2.42.0-1-x86_64.pkg.tar.zst (638958/6464914) 9%
gpgme-1.22.0-1-x86_64.pkg.tar.zst.sig (119/119) 100%
(2/3) sqlite-3.43.0-1-x86_64.pkg.tar.zst (393216/1706514) 23%
mpfr-4.2.1-1-x86_64.pkg.tar.zst.sig (119/119) 100%
(3/4) iana-etc-20230803-1-any.pkg.tar.zst (0)
iana-etc-20230803-1-any.pkg.tar.zst (406610/406610) 100%
(4/5) json-c-0.17-1-x86_64.pkg.tar.zst (0)
zlib-1:1.3-1-x86_64.pkg.tar.zst (94749/94749) 100%
(5/5) zlib-1:1.3-1-x86_64.pkg.tar.zst.sig (0)
json-c-0.17-1-x86_64.pkg.tar.zst (58335/58335) 100%
(1/5) git-2.42.0-1-x86_64.pkg.tar.zst (1310720/6464914) 20%
iana-etc-20230803-1-any.pkg.tar.zst.sig (310/310) 100%
(2/4) sqlite-3.43.0-1-x86_64.pkg.tar.zst (1015808/1706514) 59%
zlib-1:1.3-1-x86_64.pkg.tar.zst.sig (119/119) 100%
(3/4) json-c-0.17-1-x86_64.pkg.tar.zst.sig (0)
json-c-0.17-1-x86_64.pkg.tar.zst.sig (141/141) 100%
(1/3) git-2.42.0-1-x86_64.pkg.tar.zst (1441792/6464914) 22%
pacman-mirrorlist-20230820-1-any.pkg.tar.zst (8323/8323) 100%
(2/3) sqlite-3.43.0-1-x86_64.pkg.tar.zst (1114112/1706514) 65%
pacman-mirrorlist-20230820-1-any.pkg.tar.zst.sig (566/566) 100%
(1/2) git-2.42.0-1-x86_64.pkg.tar.zst (1572864/6464914) 24%
sqlite-3.43.0-1-x86_64.pkg.tar.zst (1706514/1706514) 100%
(2/2) sqlite-3.43.0-1-x86_64.pkg.tar.zst.sig (0)
sqlite-3.43.0-1-x86_64.pkg.tar.zst.sig (310/310) 100%
(1/1) git-2.42.0-1-x86_64.pkg.tar.zst (2801646/6464914) 43%
git-2.42.0-1-x86_64.pkg.tar.zst (6464914/6464914) 100%
(1/1) git-2.42.0-1-x86_64.pkg.tar.zst.sig (0)
git-2.42.0-1-x86_64.pkg.tar.zst.sig (119/119) 100%
checking keys in keyring (0/9) 0%
checking keys in keyring (1/9) 11%
checking keys in keyring (2/9) 22%
checking keys in keyring (3/9) 33%
checking keys in keyring (4/9) 44%
checking keys in keyring (5/9) 55%
checking keys in keyring (6/9) 66%
checking keys in keyring (7/9) 77%
checking keys in keyring (8/9) 88%
checking keys in keyring (9/9) 100%
checking package integrity (0/9) 0%
checking package integrity (1/9) 3%
checking package integrity (2/9) 4%
checking package integrity (3/9) 20%
checking package integrity (5/9) 25%
checking package integrity (7/9) 29%
checking package integrity (8/9) 40%
checking package integrity (9/9) 100%
loading package files (0/9) 0%
loading package files (1/9) 3%
loading package files (2/9) 4%
loading package files (3/9) 20%
loading package files (5/9) 25%
loading package files (7/9) 29%
loading package files (8/9) 40%
loading package files (9/9) 100%
checking for file conflicts (0/9) 0%
checking for file conflicts (1/9) 11%
checking for file conflicts (2/9) 22%
checking for file conflicts (3/9) 33%
checking for file conflicts (4/9) 44%
checking for file conflicts (5/9) 55%
checking for file conflicts (6/9) 66%
checking for file conflicts (7/9) 77%
checking for file conflicts (8/9) 88%
checking for file conflicts (9/9) 100%
Starting transaction...
upgrading iana-etc (1/9) 0%
upgrading iana-etc (1/9) 6%
upgrading iana-etc (1/9) 16%
upgrading iana-etc (1/9) 100%
upgrading zlib (2/9) 0%
upgrading zlib (2/9) 43%
upgrading zlib (2/9) 95%
upgrading zlib (2/9) 100%
upgrading sqlite (3/9) 0%
upgrading sqlite (3/9) 3%
upgrading sqlite (3/9) 41%
upgrading sqlite (3/9) 48%
upgrading sqlite (3/9) 53%
upgrading sqlite (3/9) 78%
upgrading sqlite (3/9) 84%
upgrading sqlite (3/9) 85%
upgrading sqlite (3/9) 99%
upgrading sqlite (3/9) 100%
upgrading json-c (4/9) 0%
upgrading json-c (4/9) 56%
upgrading json-c (4/9) 100%
upgrading gpgme (5/9) 0%
upgrading gpgme (5/9) 9%
upgrading gpgme (5/9) 14%
upgrading gpgme (5/9) 18%
upgrading gpgme (5/9) 21%
upgrading gpgme (5/9) 24%
upgrading gpgme (5/9) 28%
upgrading gpgme (5/9) 55%
upgrading gpgme (5/9) 77%
upgrading gpgme (5/9) 99%
upgrading gpgme (5/9) 100%
upgrading pacman-mirrorlist (6/9) 0%
upgrading pacman-mirrorlist (6/9) 100%
:: /etc/pacman.d/mirrorlist installed as /etc/pacman.d/mirrorlist.pacnew
upgrading mpfr (7/9) 0%
upgrading mpfr (7/9) 7%
upgrading mpfr (7/9) 80%
upgrading mpfr (7/9) 97%
upgrading mpfr (7/9) 100%
upgrading archlinux-keyring (8/9) 0%
upgrading archlinux-keyring (8/9) 6%
upgrading archlinux-keyring (8/9) 100%
==> Appending keys from archlinux.gpg...
==> Updating trust database...
gpg: next trustdb check due at 2023-10-27
==> Updating trust database...
gpg: next trustdb check due at 2023-10-27
upgrading git (9/9) 0%
upgrading git (9/9) 28%
upgrading git (9/9) 29%
upgrading git (9/9) 31%
upgrading git (9/9) 32%
upgrading git (9/9) 34%
upgrading git (9/9) 35%
upgrading git (9/9) 37%
upgrading git (9/9) 39%
upgrading git (9/9) 42%
upgrading git (9/9) 43%
upgrading git (9/9) 44%
upgrading git (9/9) 46%
upgrading git (9/9) 47%
upgrading git (9/9) 48%
upgrading git (9/9) 49%
upgrading git (9/9) 50%
upgrading git (9/9) 51%
upgrading git (9/9) 52%
upgrading git (9/9) 53%
upgrading git (9/9) 54%
upgrading git (9/9) 55%
upgrading git (9/9) 57%
upgrading git (9/9) 59%
upgrading git (9/9) 61%
upgrading git (9/9) 63%
upgrading git (9/9) 64%
upgrading git (9/9) 65%
upgrading git (9/9) 67%
upgrading git (9/9) 68%
upgrading git (9/9) 70%
upgrading git (9/9) 72%
upgrading git (9/9) 73%
upgrading git (9/9) 74%
upgrading git (9/9) 76%
upgrading git (9/9) 77%
upgrading git (9/9) 79%
upgrading git (9/9) 80%
upgrading git (9/9) 82%
upgrading git (9/9) 84%
upgrading git (9/9) 86%
upgrading git (9/9) 88%
upgrading git (9/9) 89%
upgrading git (9/9) 91%
upgrading git (9/9) 93%
upgrading git (9/9) 95%
upgrading git (9/9) 97%
upgrading git (9/9) 98%
upgrading git (9/9) 99%
upgrading git (9/9) 100%
Running post-transaction hooks...
(1/4) Running 20-systemd-sysusers.hook (Creating system user accounts...)
(2/4) Running 30-systemd-daemon-reload.hook (Reloading system manager configuration...)
(3/4) Running 30-systemd-update.hook (Arming ConditionNeedsUpdate...)
(4/4) Running texinfo-install.hook (Updating the info directory file...)
Warning: Permanently added '[localhost]:22645' (ED25519) to the list of known hosts.
Sync Explicit (4): staticcheck-2023.1.5-1, docker-1:24.0.5-1, go-2:1.21.0-1, revive-1.3.2-1
resolving dependencies...
looking for conflicting packages...

Packages (7) bridge-utils-1.7.1-1  containerd-1.7.2-1  runc-1.1.9-1  docker-1:24.0.5-1  go-2:1.21.0-1  revive-1.3.2-1  staticcheck-2023.1.5-1

Total Download Size:    98.84 MiB
Total Installed Size:  454.68 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 go-2:1.21.0-1-x86_64 downloading...
 docker-1:24.0.5-1-x86_64 downloading...
 containerd-1.7.2-1-x86_64 downloading...
 staticcheck-2023.1.5-1-x86_64 downloading...
 runc-1.1.9-1-x86_64 downloading...
 revive-1.3.2-1-x86_64 downloading...
 bridge-utils-1.7.1-1-x86_64 downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing bridge-utils...
installing runc...
Optional dependencies for runc
    criu: checkpoint support
installing containerd...
installing docker...
Optional dependencies for docker
    btrfs-progs: btrfs backend support
    pigz: parallel gzip compressor support
    docker-scan: vulnerability scanner
    docker-buildx: extended build capabilities
installing go...
installing revive...
installing staticcheck...
:: Running post-transaction hooks...
(1/4) Creating system user accounts...
(2/4) Reloading system manager configuration...
(3/4) Reloading device manager configuration...
(4/4) Arming ConditionNeedsUpdate...
[#34] 2023/08/27 22:38:29 Cloning repositories
Cloning into 'ntfy-alertmanager'...
+ cd ntfy-alertmanager
+ git checkout -q 86afe915f3ab40c85b517307af2e2758c6152efe
+ cd ntfy-alertmanager
+ git submodule update --init --recursive
[#34] 2023/08/27 22:38:30 Running task test
[#34] 2023/08/27 22:38:47 Running task lint
[#34] 2023/08/27 22:38:53 Running task build
[#34] 2023/08/27 22:38:53 Running task gofmt
[#34] 2023/08/27 22:38:54 Running task dev-image
test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
+ cd ntfy-alertmanager
+ go test -v ./...
go: downloading github.com/redis/go-redis/v9 v9.0.5
go: downloading git.sr.ht/~emersion/go-scfg v0.0.0-20230601130942-e042ab15616e
go: downloading git.xenrox.net/~xenrox/go-utils v0.0.0-20230813135846-959a68fe51de
go: downloading golang.org/x/text v0.12.0
go: downloading github.com/cespare/xxhash/v2 v2.2.0
go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f
?   	git.xenrox.net/~xenrox/ntfy-alertmanager	[no test files]
?   	git.xenrox.net/~xenrox/ntfy-alertmanager/cache	[no test files]
=== RUN   TestReadConfig
--- PASS: TestReadConfig (0.00s)
PASS
ok  	git.xenrox.net/~xenrox/ntfy-alertmanager/config	0.002s
lint
1
2
3
4
+ cd ntfy-alertmanager
+ go vet ./...
+ staticcheck ./...
+ revive ./...
build
1
2
+ cd ntfy-alertmanager
+ go build
gofmt
1
2
3
+ cd ntfy-alertmanager
++ gofmt -l .
+ test -z
dev-image
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
+ cd ntfy-alertmanager/docker
+ '[' git.sr.ht '!=' git.sr.ht ']'
++ git rev-parse master
++ git rev-parse HEAD
+ '[' 86afe915f3ab40c85b517307af2e2758c6152efe '!=' 86afe915f3ab40c85b517307af2e2758c6152efe ']'
+ sudo systemctl start docker
+ /home/build/.local/bin/dockerhub_login
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /home/build/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded
+ docker build -f Dockerfile-dev -t xenrox/ntfy-alertmanager:dev ./..
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

Sending build context to Docker daemon   9.45MB


Step 1/9 : FROM golang:alpine as build
alpine: Pulling from library/golang
7264a8db6415: Pulling fs layer
c4d48a809fc2: Pulling fs layer
4f1c88b9dad5: Pulling fs layer
ad3a456e5733: Pulling fs layer
ad3a456e5733: Waiting
c4d48a809fc2: Verifying Checksum
c4d48a809fc2: Download complete
7264a8db6415: Verifying Checksum
7264a8db6415: Download complete
7264a8db6415: Pull complete
c4d48a809fc2: Pull complete
ad3a456e5733: Verifying Checksum
ad3a456e5733: Download complete
4f1c88b9dad5: Verifying Checksum
4f1c88b9dad5: Download complete
4f1c88b9dad5: Pull complete
ad3a456e5733: Pull complete
Digest: sha256:445f34008a77b0b98bf1821bf7ef5e37bb63cc42d22ee7c21cc17041070d134f
Status: Downloaded newer image for golang:alpine
 ---> c9e410d017b6
Step 2/9 : WORKDIR /app
 ---> Running in a9ae92f89027
Removing intermediate container a9ae92f89027
 ---> 52caa3855d8f
Step 3/9 : COPY . .
 ---> 2c0813e63b57
Step 4/9 : RUN apk add --no-cache git
 ---> Running in 09ddfd88d269
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
(1/8) Installing brotli-libs (1.0.9-r14)
(2/8) Installing libunistring (1.1-r1)
(3/8) Installing libidn2 (2.3.4-r1)
(4/8) Installing nghttp2-libs (1.55.1-r0)
(5/8) Installing libcurl (8.2.1-r0)
(6/8) Installing libexpat (2.5.0-r1)
(7/8) Installing pcre2 (10.42-r1)
(8/8) Installing git (2.40.1-r0)
Executing busybox-1.36.1-r2.trigger
OK: 18 MiB in 24 packages
Removing intermediate container 09ddfd88d269
 ---> 7c779951c2ac
Step 5/9 : RUN go build -ldflags="-X main.version=$(git describe --long)" -o /app/ntfy-alertmanager
 ---> Running in d57bdf668f3e
go: downloading git.xenrox.net/~xenrox/go-utils v0.0.0-20230813135846-959a68fe51de
go: downloading golang.org/x/text v0.12.0
go: downloading github.com/redis/go-redis/v9 v9.0.5
go: downloading git.sr.ht/~emersion/go-scfg v0.0.0-20230601130942-e042ab15616e
go: downloading github.com/cespare/xxhash/v2 v2.2.0
go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f
Removing intermediate container d57bdf668f3e
 ---> c74bc7f69101
Step 6/9 : FROM alpine:latest
latest: Pulling from library/alpine
7264a8db6415: Already exists
Digest: sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a
Status: Downloaded newer image for alpine:latest
 ---> 7e01a0d0a1dc
Step 7/9 : WORKDIR /
 ---> Running in 2fed8954905d
Removing intermediate container 2fed8954905d
 ---> 485104d4c6c7
Step 8/9 : COPY --from=build /app/ntfy-alertmanager /ntfy-alertmanager
 ---> 88896e6bbf2f
Step 9/9 : ENTRYPOINT [ "./ntfy-alertmanager" ]
 ---> Running in 8bdc97e61500
Removing intermediate container 8bdc97e61500
 ---> eba92c5a070c
Successfully built eba92c5a070c
Successfully tagged xenrox/ntfy-alertmanager:dev
+ docker push xenrox/ntfy-alertmanager:dev
The push refers to repository [docker.io/xenrox/ntfy-alertmanager]
c97d53260f44: Preparing
4693057ce236: Preparing
4693057ce236: Layer already exists
c97d53260f44: Pushed
dev: digest: sha256:6d3f1fb6bfc95219e86b82b17090f38fc70210a1fee584fa1b6ec14a143ff1b7 size: 739
Build complete: success 8 months ago (took a minute)