This repository has been archived by the owner on Dec 2, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
113 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: docker:latest | ||
steps: | ||
- checkout | ||
- setup_remote_docker: | ||
docker_layer_caching: true | ||
- run: | ||
name: Docker building | ||
command: | | ||
if [ "$CIRCLE_BRANCH" = "master" ]; then docker build -t dougley/bezerk:latest .; else docker build -t dougley/bezerk:$CIRCLE_BRANCH .; fi | ||
docker login -u $DOCKER_USER -p $DOCKER_PASS | ||
if [ "$CIRCLE_BRANCH" = "master" ]; then docker push dougley/bezerk:latest; else docker push dougley/bezerk:$CIRCLE_BRANCH; fi | ||
tagged-build: | ||
docker: | ||
- image: docker:latest | ||
steps: | ||
- checkout | ||
- setup_remote_docker: | ||
docker_layer_caching: true | ||
- run: | ||
name: Docker building | ||
command: | | ||
docker build -t dougley/bezerk:$(git describe --abbrev=0 --tags) . | ||
docker login -u $DOCKER_USER -p $DOCKER_PASS | ||
docker push dougley/bezerk:$(git describe --abbrev=0 --tags) | ||
workflows: | ||
version: 2 | ||
test_n_build: | ||
jobs: | ||
- build | ||
- tagged-build: | ||
filters: | ||
branches: | ||
ignore: /.*/ | ||
tags: | ||
only: /v.+/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM node:9 | ||
MAINTAINER hello@dougley.com | ||
|
||
WORKDIR /app | ||
|
||
CMD ["node", "index.js"] | ||
|
||
COPY package.json /app/ | ||
|
||
# Create working dir | ||
RUN mkdir -p /app | ||
COPY . /app | ||
|
||
RUN npm i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters