-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/publish docker on tag #2485
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
# build stage | ||
FROM node:10.15.3-alpine as build-stage | ||
RUN apk update && apk upgrade && \ | ||
apk add --no-cache bash git | ||
FROM webhippie/nginx:latest | ||
|
||
WORKDIR /app | ||
COPY . . | ||
RUN yarn install | ||
RUN yarn dist | ||
|
||
# production stage | ||
FROM nginx:1.13.12-alpine as production-stage | ||
COPY --from=build-stage /app/dist /usr/share/nginx/html | ||
EXPOSE 80 | ||
CMD ["nginx", "-g", "daemon off;"] | ||
COPY dist /srv/www |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ help: | |
|
||
.PHONY: dist | ||
dist: ## Build distribution | ||
dist: distdir javascript oc-app distconf sign package | ||
dist: distdir javascript oc-app distconf sign package docker-image | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why should that be part of the release makefile? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought when doing a release having a docker image being spit out is reasonable .... |
||
|
||
|
||
.PHONY: javascript | ||
|
@@ -74,3 +74,6 @@ package: | |
cp -R $(dist_dir) $(CURDIR)/phoenix | ||
tar -czf $(CURDIR)/release/$(app_name).tar.gz -C $(CURDIR) phoenix | ||
|
||
.PHONY: docker-image | ||
docker-image: | ||
docker build . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to add
docker tag owncloud/phoenix:${DRONE_COMMIT_SHA}-${DRONE_BUILD_NUMBER} owncloud/phoenix:latest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done