~xenrox/#18

success

960ab04Thorben Günther

ci: Don't fail on staticcheck

Owner
~xenrox
Created
9 months ago
Updated
9 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
[#18] 2023/08/15 23:21:16 Booting image archlinux (default) on port 22629
[#18] 2023/08/15 23:21:16 Waiting for guest to settle
[#18] 2023/08/15 23:21:25 Sending tasks
[#18] 2023/08/15 23:21:27 Sending build environment
[#18] 2023/08/15 23:21:27 Sending secrets
[#18] 2023/08/15 23:21:27 Resolving secret 2b44595c-3464-4c2d-a8df-c5dea8e90c4c
[#18] 2023/08/15 23:21:28 Installing packages
Warning: Permanently added '[localhost]:22629' (ED25519) to the list of known hosts.
(1/1) core.db (0)
core.db (132805/132805) 100%
(2/2) core.db.sig (0)
(1/1) extra.db (360448/8705453) 4%
extra.db (8705453/8705453) 100%
(1/1) extra.db.sig (0)
Warning: Permanently added '[localhost]:22629' (ED25519) to the list of known hosts.
Resolving dependencies...
Checking package conflicts...
installing core/gnutls (3.8.0-1 -> 3.8.1-1)
installing core/less (1:633-1 -> 1:643-1)
installing core/libsecret (0.20.5-2 -> 0.21.0-1)

Download Size:      3.06 M
Installed Size:     6.98 M
Size Delta:        92.75 K
Downloading packages...
(1/1) gnutls-3.8.1-1-x86_64.pkg.tar.zst (0)
less-1:643-1-x86_64.pkg.tar.zst (133572/133572) 100%
(2/3) libsecret-0.21.0-1-x86_64.pkg.tar.zst (98304/191866) 51%
less-1:643-1-x86_64.pkg.tar.zst.sig (119/119) 100%
(1/2) gnutls-3.8.1-1-x86_64.pkg.tar.zst (311278/2880541) 10%
libsecret-0.21.0-1-x86_64.pkg.tar.zst (191866/191866) 100%
(2/2) libsecret-0.21.0-1-x86_64.pkg.tar.zst.sig (0)
libsecret-0.21.0-1-x86_64.pkg.tar.zst.sig (141/141) 100%
(1/1) gnutls-3.8.1-1-x86_64.pkg.tar.zst (442350/2880541) 15%
gnutls-3.8.1-1-x86_64.pkg.tar.zst (2880541/2880541) 100%
(1/1) gnutls-3.8.1-1-x86_64.pkg.tar.zst.sig (0)
gnutls-3.8.1-1-x86_64.pkg.tar.zst.sig (310/310) 100%
checking keys in keyring (0/3) 0%
checking keys in keyring (1/3) 33%
checking keys in keyring (2/3) 66%
checking keys in keyring (3/3) 100%
checking package integrity (0/3) 0%
checking package integrity (1/3) 89%
checking package integrity (2/3) 94%
checking package integrity (3/3) 100%
loading package files (0/3) 0%
loading package files (1/3) 89%
loading package files (2/3) 94%
loading package files (3/3) 100%
checking for file conflicts (0/3) 0%
checking for file conflicts (1/3) 33%
checking for file conflicts (2/3) 66%
checking for file conflicts (3/3) 100%
Starting transaction...
upgrading gnutls (1/3) 0%
upgrading gnutls (1/3) 3%
upgrading gnutls (1/3) 6%
upgrading gnutls (1/3) 7%
upgrading gnutls (1/3) 9%
upgrading gnutls (1/3) 10%
upgrading gnutls (1/3) 11%
upgrading gnutls (1/3) 12%
upgrading gnutls (1/3) 13%
upgrading gnutls (1/3) 42%
upgrading gnutls (1/3) 46%
upgrading gnutls (1/3) 47%
upgrading gnutls (1/3) 49%
upgrading gnutls (1/3) 53%
upgrading gnutls (1/3) 58%
upgrading gnutls (1/3) 61%
upgrading gnutls (1/3) 62%
upgrading gnutls (1/3) 63%
upgrading gnutls (1/3) 64%
upgrading gnutls (1/3) 65%
upgrading gnutls (1/3) 67%
upgrading gnutls (1/3) 70%
upgrading gnutls (1/3) 72%
upgrading gnutls (1/3) 75%
upgrading gnutls (1/3) 77%
upgrading gnutls (1/3) 79%
upgrading gnutls (1/3) 81%
upgrading gnutls (1/3) 84%
upgrading gnutls (1/3) 86%
upgrading gnutls (1/3) 88%
upgrading gnutls (1/3) 91%
upgrading gnutls (1/3) 93%
upgrading gnutls (1/3) 95%
upgrading gnutls (1/3) 98%
upgrading gnutls (1/3) 100%
upgrading less (2/3) 0%
upgrading less (2/3) 49%
upgrading less (2/3) 75%
upgrading less (2/3) 100%
upgrading libsecret (3/3) 0%
upgrading libsecret (3/3) 12%
upgrading libsecret (3/3) 25%
upgrading libsecret (3/3) 76%
upgrading libsecret (3/3) 89%
upgrading libsecret (3/3) 97%
upgrading libsecret (3/3) 100%
Running post-transaction hooks...
(1/2) Running 30-systemd-update.hook (Arming ConditionNeedsUpdate...)
(2/2) Running texinfo-install.hook (Updating the info directory file...)
Warning: Permanently added '[localhost]:22629' (ED25519) to the list of known hosts.
Sync Explicit (4): revive-1.3.2-1, staticcheck-2023.1.3-1, docker-1:24.0.5-1, go-2:1.21.0-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.3-1

Total Download Size:    98.83 MiB
Total Installed Size:  454.70 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.3-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 go...
installing revive...
installing staticcheck...
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
:: 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...
[#18] 2023/08/15 23:21:34 Cloning repositories
Cloning into 'ntfy-alertmanager'...
+ cd ntfy-alertmanager
+ git checkout -q 960ab04165e2cdf9f9c1876e440526fecb8a39a2
+ cd ntfy-alertmanager
+ git submodule update --init --recursive
[#18] 2023/08/15 23:21:35 Running task test
[#18] 2023/08/15 23:21:52 Running task lint
[#18] 2023/08/15 23:21:54 Running task build
[#18] 2023/08/15 23:21:55 Running task gofmt
[#18] 2023/08/15 23:21:55 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.001s
lint
1
2
3
4
5
6
+ cd ntfy-alertmanager
+ go vet ./...
+ staticcheck ./...
invalid Go version: "1.21.0"
+ true
+ 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
+ '[' 960ab04165e2cdf9f9c1876e440526fecb8a39a2 '!=' 960ab04165e2cdf9f9c1876e440526fecb8a39a2 ']'
+ 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.436MB


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
ad3a456e5733: Verifying Checksum
ad3a456e5733: Download complete
c4d48a809fc2: Pull 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 b5846178051f
Removing intermediate container b5846178051f
 ---> e005a9c5ab3a
Step 3/9 : COPY . .
 ---> 42350dc0dbe2
Step 4/9 : RUN apk add --no-cache git
 ---> Running in c6ab1f6f7fdb
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 c6ab1f6f7fdb
 ---> ac5421fde245
Step 5/9 : RUN go build -ldflags="-X main.version=$(git describe --long)" -o /app/ntfy-alertmanager
 ---> Running in 61c30ccff755
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 61c30ccff755
 ---> 4de0fb47c00d
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 5c2c5fb64b79
Removing intermediate container 5c2c5fb64b79
 ---> 6e6165303837
Step 8/9 : COPY --from=build /app/ntfy-alertmanager /ntfy-alertmanager
 ---> c85c7655d097
Step 9/9 : ENTRYPOINT [ "./ntfy-alertmanager" ]
 ---> Running in a4eef9e9d43b
Removing intermediate container a4eef9e9d43b
 ---> 32a200d36e2a
Successfully built 32a200d36e2a
Successfully tagged xenrox/ntfy-alertmanager:dev
+ docker push xenrox/ntfy-alertmanager:dev
The push refers to repository [docker.io/xenrox/ntfy-alertmanager]
21e67394aac7: Preparing
4693057ce236: Preparing
4693057ce236: Mounted from library/alpine
21e67394aac7: Pushed
dev: digest: sha256:f22ccef5b378592b4e1a1b4875e77a2bee58f6abb327c1233a592c9c6b0d9562 size: 739
Build complete: success 9 months ago (took a minute)