feat(build): add a build target for deploying to heroku

This commit is contained in:
Łukasz Mierzwa
2018-08-17 22:27:58 +01:00
parent ebfeda8d0d
commit bf4477eadc
3 changed files with 18 additions and 1 deletions
-1
View File
@@ -7,4 +7,3 @@ ui/build
ui/coverage
ui/node_modules
vendor
Dockerfile.web
+12
View File
@@ -0,0 +1,12 @@
FROM alpine:latest
COPY --from=lmierzwa/unsee:latest /unsee /unsee
RUN adduser -D unsee
USER unsee
ENV LOG_CONFIG=false
ENV ALERTMANAGER_INTERVAL=2400h
ENV ALERTMANAGER_URI=file:///mock
ENV LABELS_COLOR_UNIQUE="@receiver instance cluster"
ENV LABELS_COLOR_STATIC="job"
ENV FILTERS_DEFAULT="@receiver=by-cluster-service"
COPY internal/mock/0.15.2 /mock
CMD /unsee
+6
View File
@@ -149,3 +149,9 @@ greenkeeper-lockfile:
npm install -g greenkeeper-lockfile@2
cd ui && greenkeeper-lockfile-update
cd ui && greenkeeper-lockfile-upload
.PHONY: heroku
heroku:
docker pull lmierzwa/unsee:latest
heroku container:push web -R
heroku container:release web