diff --git a/build/Dockerfile b/build/Dockerfile index 33e9b7a..7484623 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -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"] \ No newline at end of file +ENTRYPOINT ["/go/bin/watch_tower", "-c", "$CONFIG"] \ No newline at end of file diff --git a/stack.yml b/stack.yml index fc68a54..b14247f 100644 --- a/stack.yml +++ b/stack.yml @@ -10,6 +10,8 @@ services: deploy: mode: replicated replicas: 1 + env: + CONFIG: config.test.yml secrets: - watch-tower