ntfy-alertmanager/.build.yml
Thorben Günther 55c58d882c
Publish a dev docker image
It is build from the master branch.
2023-01-14 21:31:54 +01:00

33 lines
916 B
YAML

image: archlinux
packages:
- docker
- go
- revive
- staticcheck
sources:
- https://git.xenrox.net/~xenrox/ntfy-alertmanager
tasks:
- test: |
cd ntfy-alertmanager
go test -v ./...
- lint: |
cd ntfy-alertmanager
go vet ./...
staticcheck ./...
revive ./...
- build: |
cd ntfy-alertmanager
go build
- gofmt: |
cd ntfy-alertmanager
test -z $(gofmt -l .)
- 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