-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Alethio/v2.4.12
V2.4.12
- Loading branch information
Showing
8 changed files
with
252 additions
and
197 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 |
---|---|---|
@@ -1,28 +1,45 @@ | ||
version: 2 | ||
|
||
jobs: | ||
build: | ||
docker: | ||
# specify the version you desire here | ||
- image: circleci/node:latest | ||
|
||
working_directory: ~/repo | ||
|
||
steps: | ||
- checkout | ||
- run: | ||
name: Install Node Modules | ||
command: npm install | ||
- run: | ||
name: Gulp Lint | ||
command: npm run gulp lint | ||
- run: | ||
name: Gulp Build | ||
command: npm run gulp prepare | ||
|
||
# Download and cache dependencies | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "package.json" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- v1-dependencies- | ||
|
||
- run: npm install | ||
|
||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: v1-dependencies-{{ checksum "package.json" }} | ||
trigger-docker-hub: | ||
docker: | ||
- image: circleci/node:latest | ||
working_directory: ~/repo | ||
steps: | ||
- checkout | ||
- run: | ||
name: Trigger DockerHub | ||
command: ./triggerDockerHub.sh | ||
|
||
# run tests! | ||
- run: npm run gulp prepare | ||
workflows: | ||
version: 2 | ||
deploy: | ||
jobs: | ||
- build: | ||
filters: | ||
tags: | ||
only: /.*/ | ||
- trigger-docker-hub: | ||
requires: | ||
- build | ||
filters: | ||
tags: | ||
only: /^v[0-9.]+$/ | ||
branches: | ||
only: master |
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 |
---|---|---|
@@ -1,14 +1,16 @@ | ||
FROM node:latest | ||
FROM node:alpine | ||
|
||
RUN apk update && \ | ||
apk add --no-cache git python g++ make procps | ||
|
||
WORKDIR /ethstats-cli | ||
|
||
COPY package.json package-lock.json .babelrc ./ | ||
|
||
RUN npm install -g gulp-cli | ||
RUN npm install | ||
|
||
COPY . . | ||
|
||
RUN gulp prepare | ||
RUN npm run gulp prepare | ||
|
||
ENTRYPOINT ["./bin/ethstats-cli.js", "-vd"] |
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
Oops, something went wrong.