Publish a dev docker image

It is build from the master branch.
This commit is contained in:
Thorben Günther 2023-01-14 21:26:57 +01:00
parent db01ca2f2f
commit 55c58d882c
No known key found for this signature in database
GPG key ID: 415CD778D8C5AFED
3 changed files with 26 additions and 0 deletions

View file

@ -1,5 +1,6 @@
image: archlinux
packages:
- docker
- go
- revive
- staticcheck
@ -20,3 +21,13 @@ tasks:
- 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

View file

@ -7,6 +7,8 @@ A bridge between ntfy and Alertmanager.
## Installation
Simply use go build or the [docker image] with [docker-compose file].
`ntfy-alertmanager:latest` is built from the latest tagged release while
`ntfy-alertmanager:dev` is built from the master branch.
## Configuration

13
docker/Dockerfile-dev Normal file
View file

@ -0,0 +1,13 @@
FROM golang:alpine as build
WORKDIR /app
COPY . .
RUN go build -o /app/ntfy-alertmanager
FROM alpine:latest
WORKDIR /
COPY --from=build /app/ntfy-alertmanager /ntfy-alertmanager
ENTRYPOINT [ "./ntfy-alertmanager" ]