Publish a dev docker image
It is build from the master branch.
This commit is contained in:
parent
db01ca2f2f
commit
55c58d882c
3 changed files with 26 additions and 0 deletions
11
.build.yml
11
.build.yml
|
@ -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
|
||||
|
|
|
@ -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
13
docker/Dockerfile-dev
Normal 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" ]
|
Loading…
Reference in a new issue