-
Notifications
You must be signed in to change notification settings - Fork 0
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/GitHub actions #82
Changes from 5 commits
8ba370a
5776d6d
11fdaad
8bca52d
80645a4
34c6e1c
c70c694
dc31b14
63edb5d
14fcbc2
aa53af8
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
repo_token: PwVl30TQtZV5gqGCaiDYqCqjG11tl89hP |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Node Continuous Integration | ||
|
||
on: | ||
pull_request: | ||
branches: [ master, develop ] | ||
|
||
|
||
jobs: | ||
test_pull_request: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- run: npm ci | ||
- run: npm test | ||
- run: npm run build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,13 @@ | ||
FROM node:10 as web | ||
|
||
WORKDIR /usr/src/app | ||
ENV ENVIRONMENT_NAME 'production' | ||
ENV CONTAINER_VERSION '2.0.1' | ||
|
||
COPY package*.json ./ | ||
RUN npm install --production | ||
|
||
COPY . . | ||
CMD node dist/server.js | ||
|
||
### | ||
|
||
#FROM node:10 as demo | ||
## Create app directory | ||
#WORKDIR /usr/src/app | ||
#ENV ENVIRONMENT_NAME 'production' | ||
#ENV CONTAINER_VERSION '1.5.0' | ||
# | ||
## Install app dependencies | ||
## A wildcard is used to ensure both package.json AND package-lock.json are copied | ||
## where available (npm@5+) | ||
#COPY package*.json ./ | ||
#RUN npm install --production | ||
## If you are building your code for production | ||
## RUN npm ci --only=production | ||
##COPY . . | ||
## Bundle app source | ||
##RUN npm run build | ||
# | ||
#COPY . . | ||
# | ||
#CMD node dist/server.js | ||
#ARG version | ||
#RUN ${version}=${( npm version | grep covid19liveupdates | sed "s/'(.*?)'//g")} | ||
#ENV CONTAINER_VERSION=${version} | ||
|
||
COPY dist/server.js . | ||
CMD node server.js |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
CALL cd .. | ||
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 actually meant nor toremove this file, 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. done |
||
CALL heroku container:login | ||
CALL heroku container:push demo --app=demo-covid19livebot | ||
CALL heroku container:release demo --app=demo-covid19livebot | ||
CALL heroku container:push web --app=demo-covid19livebot | ||
CALL heroku container:release web --app=demo-covid19livebot | ||
CALL heroku open --app=demo-covid19livebot |
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.
I'd move this set of comamnds to single bat.
And then jst have kind demo.bat which says relase.bat demo-covid19livebot
inside release bat it would be
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.
@danbilokha
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.
letme try
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