Webhook-to-SSE gateway with hierarchical topic routing and signature verification
1when:
2 - event: ["push"]
3 branch: ["main"]
4 - event: ["pull_request"]
5 branch: ["main"]
6
7engine: "nixery"
8
9dependencies:
10 nixpkgs:
11 - go
12 - gnugrep
13 - gawk
14 - coreutils
15 - docker
16
17steps:
18 - name: "Test with coverage"
19 environment:
20 CGO_ENABLED: "0"
21 command: |
22 ./check-coverage
23
24 - name: "Build and push image"
25 environment:
26 CGO_ENABLED: "0"
27 KO_DOCKER_REPO: "atcr.io/guid.foo/wicket"
28 command: |
29 go install github.com/google/ko@latest
30 export PATH="$(go env GOPATH)/bin:$PATH"
31 export VERSION="$(date -u +%Y%m%d%H%M%S)-$(git rev-parse --short HEAD)"
32 echo "${ATCR_APP_PASSWORD}" | docker login atcr.io -u guid.foo --password-stdin
33 ko build --bare --tags "latest,${VERSION}" .