Skip to content

Commit

Permalink
fix build image for webhook.
Browse files Browse the repository at this point in the history
Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Dec 7, 2016
1 parent e49c13c commit 4ad5411
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ docker_image:
docker build -t $(DEPLOY_ACCOUNT)/$(DEPLOY_IMAGE) .

docker_webhook_image:
docker build -t $(DEPLOY_ACCOUNT)/$(DEPLOY_WEBHOOK_IMAGE) example
docker build -t $(DEPLOY_ACCOUNT)/$(DEPLOY_WEBHOOK_IMAGE) -f example/Dockerfile .

docker: docker_build docker_image docker_webhook_image

Expand Down
5 changes: 3 additions & 2 deletions example/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ ENV CHANNEL_TOKEN $CHANNEL_TOKEN
ENV PORT 8089

RUN apk update && apk upgrade && \
apk add --no-cache git
apk add --no-cache git && \
rm -rf /var/cache/apk/*

ADD server.go $app/
ADD example/server.go $app/
WORKDIR $app
RUN go get -t -v ./...

Expand Down
2 changes: 1 addition & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $ go run server.go
Build your own docker image.

```bash
$ docker build -t appleboy/drone-line-webhook .
$ docker build -t appleboy/drone-line-webhook -f example/Dockerfile .
```

or download image from [docker hub](https://hub.docker.com/r/appleboy/drone-line-webhook/).
Expand Down

0 comments on commit 4ad5411

Please sign in to comment.