Commit 5504ce7393dc1b1b74d33657bd5a1abaeb702681

Parents: fb7a88f2f257abeaa40b8c415cec2b353a785017

From: Moritz Poldrack <git@moritz.sh>
Date: Mon Jun 13 18:10:49 2022 +0700

fixed buildfile

		

Stats

.build.yml +9/-2

Changeset

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/.build.yml b/.build.yml
index bc6f3708a5dd8c0587fc756c6c6eae948c0135e0..c64be693cb7238f9b09f1d26c201ff9a55750912 100644
--- a/.build.yml
+++ b/.build.yml
@@ -1,10 +1,17 @@
-image: archlinux
+image: alpine/edge
 packages:
   - go
 shell: false
+secrets:
+- 4865f9c5-a426-4b08-a045-50e0ba85d7e3
 sources:
 - https://git.sr.ht/~poldi1405/nntp
 tasks:
-  - go-test: |
+- add-credentials: |
+    if [ "$BUILD_SUBMITTER" == "git.sr.ht" ]; then
+      cd nntp
+      patch -u variables_test.go -i ~/add-credentials.patch
+    fi
+- go-test: |
     cd nntp
     go test -v -cover