summaryrefslogtreecommitdiffstats
path: root/.build.yml
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2025-09-07 17:59:14 +0200
committerAhmed AbdelHalim <[email protected]>2025-09-07 18:46:56 +0200
commit64b34d26c6ff5c2f786aade7118e762b5ce4d969 (patch)
treecca65ab736d951e54eae5d7e0dd5d387b323f22d /.build.yml
parentc79e1049381b40bb8c71ca25d633997c4fc13dd2 (diff)
Add srht CI lint/build
Diffstat (limited to '.build.yml')
-rw-r--r--.build.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml
new file mode 100644
index 0000000..3a511aa
--- /dev/null
+++ b/.build.yml
@@ -0,0 +1,26 @@
+---
+image: alpine/edge
+secrets:
+ - 5077f4a0-6a32-46e8-aa7c-5be8778d0524
+sources:
+ - [email protected]/~a14m/wireguard-gateway-portal
+environment:
+ GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=no
+packages:
+ - go
+ - curl
+ - make
+tasks:
+ - setup: |
+ # This is for not having to cd into the <repo> for each task
+ echo 'cd wireguard-gateway-portal' >> ~/.buildenv
+ echo 'export "PATH=/home/build/go/bin:$PATH"' >> ~/.buildenv
+ - deps: |
+ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin
+ golangci-lint --version
+ - lint: |
+ make deps
+ make verify
+ make lint
+ - build: |
+ make build