Skip to content

Commit

Permalink
Config env
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Sep 29, 2021
1 parent 5568e43 commit e50c7e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ FROM scratch

WORKDIR /app/watch_tower
ENV GOPATH=$GOPATH
ENV CONFIG=$CONFIG

COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /go/bin/watch_tower /go/bin/watch_tower
COPY cmd/watch_tower/config.yml /app/watch_tower/
COPY cmd/watch_tower/$CONFIG /app/watch_tower/
COPY cmd/watch_tower/abi/ /app/watch_tower/abi/

ENTRYPOINT ["/go/bin/watch_tower", "-c", "config.yml"]
ENTRYPOINT ["/go/bin/watch_tower", "-c", "$CONFIG"]
2 changes: 2 additions & 0 deletions stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ services:
deploy:
mode: replicated
replicas: 1
env:
CONFIG: config.test.yml
secrets:
- watch-tower

Expand Down

0 comments on commit e50c7e5

Please sign in to comment.