-
-
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.
Merge pull request #26 from svrooij/feature/mqtt-docker
feat: Major version bump
- Loading branch information
Showing
6 changed files
with
1,812 additions
and
2,270 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,14 +1,23 @@ | ||
language: node_js | ||
cache: | ||
directories: | ||
- ~/.npm | ||
notifications: | ||
email: false | ||
|
||
node_js: | ||
- 'node' | ||
- 'lts/*' | ||
after_success: | ||
- npm run semantic-release | ||
- 10 | ||
- 13 | ||
|
||
branches: | ||
except: | ||
- /^v\d+\.\d+\.\d+$/ | ||
only: | ||
- "master" | ||
|
||
jobs: | ||
include: | ||
# Define the release stage that runs semantic-release | ||
- stage: release | ||
node_js: lts/* | ||
if: branch = master | ||
# Advanced: optionally overwrite your default `script` step to skip the tests | ||
# script: skip | ||
deploy: | ||
provider: script | ||
skip_cleanup: true | ||
script: | ||
- npx semantic-release |
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,15 +1,8 @@ | ||
FROM node:boron-alpine | ||
|
||
FROM node:current-alpine | ||
ENV IPCAM2MQTT_PORT=8021 | ||
|
||
WORKDIR /usr/ipcam2mqtt | ||
|
||
COPY package.json package-lock.json ./ | ||
|
||
RUN npm install --production | ||
|
||
WORKDIR /usr/src/app | ||
COPY package*.json ./ | ||
RUN npm ci --only=production | ||
COPY . . | ||
|
||
EXPOSE 8021 | ||
|
||
CMD ["node","index.js"] | ||
CMD ["node", "./index.js"] |
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.