2022-10-13 14:16:41 +02:00
|
|
|
image: archlinux
|
|
|
|
packages:
|
2023-01-14 21:26:57 +01:00
|
|
|
- docker
|
2022-10-13 14:16:41 +02:00
|
|
|
- go
|
|
|
|
- revive
|
|
|
|
- staticcheck
|
2023-01-14 21:33:43 +01:00
|
|
|
secrets:
|
|
|
|
- 2b44595c-3464-4c2d-a8df-c5dea8e90c4c
|
2022-10-13 14:16:41 +02:00
|
|
|
sources:
|
|
|
|
- https://git.xenrox.net/~xenrox/ntfy-alertmanager
|
|
|
|
tasks:
|
|
|
|
- test: |
|
|
|
|
cd ntfy-alertmanager
|
|
|
|
go test -v ./...
|
|
|
|
- lint: |
|
|
|
|
cd ntfy-alertmanager
|
|
|
|
go vet ./...
|
2023-08-20 19:41:31 +02:00
|
|
|
staticcheck ./...
|
2022-10-13 14:16:41 +02:00
|
|
|
revive ./...
|
|
|
|
- build: |
|
|
|
|
cd ntfy-alertmanager
|
|
|
|
go build
|
|
|
|
- gofmt: |
|
|
|
|
cd ntfy-alertmanager
|
|
|
|
test -z $(gofmt -l .)
|
2023-01-14 21:26:57 +01:00
|
|
|
- dev-image: |
|
|
|
|
cd ntfy-alertmanager/docker
|
|
|
|
if [ "$BUILD_SUBMITTER" != "git.sr.ht" ] || [ "$(git rev-parse master)" != "$(git rev-parse HEAD)" ]
|
|
|
|
then
|
|
|
|
complete-build
|
|
|
|
fi
|
|
|
|
sudo systemctl start docker
|
|
|
|
~/.local/bin/dockerhub_login
|
|
|
|
docker build -f Dockerfile-dev -t xenrox/ntfy-alertmanager:dev ./..
|
|
|
|
docker push xenrox/ntfy-alertmanager:dev
|