Skip to content

Commit

Permalink
Fix: Releaserc, CiJob, Dockerfile
Browse files Browse the repository at this point in the history
Semantic-release:
  * Added missing .releaserc
CiJob
  * Removed apt-get update
  * changed nodejs version to 16
  * added node --version check
  • Loading branch information
coolapso committed Oct 23, 2021
1 parent 6f7a195 commit 089e7cc
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
35 changes: 35 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "docs.pivpn.io",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "./CHANGELOG.md"
}
],
["@semantic-release/github", {
"assets": [
{"path": "dist/asset.min.css", "label": "CSS distribution"},
{"path": "dist/asset.min.js", "label": "JS distribution"}
]
}],
[
"@semantic-release-plus/docker",
{
"name": "pivpn/docs"
}
],
],
"devDependencies": {
"@semantic-release/gitlab": "^7.0.3",
"semantic-release": "^18.0.0"
},
"release": {
"branches": [
"master",
]
}
}

4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
env:
- IMAGE=pivpn/docs
before_install:
- curl -fsSL https://deb.nodesource.com/setup_17.x | sudo -E bash -
- sudo apt-get update
- curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
- sudo apt-get install -y nodejs
- node --version
install:
- pip install mkdocs-material
- npm install @semantic-release/github -D
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ FROM nginx
HEALTHCHECK --interval=30s --timeout=3s \
CMD curl -f http://localhost/ || exit 1

RUN apt update && apt upgrade -y
ADD site /usr/share/nginx/html
COPY nginx/docs.conf /etc/nginx/conf.d/docs.conf
RUN find /usr/share/nginx/html -type d -exec chmod 755 {} \;
Expand Down

0 comments on commit 089e7cc

Please sign in to comment.