-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(SemVer): Added Semantic releases
CiJob: * Added semantic release * Website and docker images now use semantic versioning * Live website is updated within few minutes of new release Readme: * Added semantic release badge * Added badge to website status Dockerfile: * Removed apt update / upgrade
- Loading branch information
Showing
4 changed files
with
59 additions
and
10 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,35 @@ | ||
{ | ||
"name": "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/pivpn.io" | ||
} | ||
], | ||
], | ||
"devDependencies": { | ||
"@semantic-release/gitlab": "^7.0.3", | ||
"semantic-release": "^18.0.0" | ||
}, | ||
"release": { | ||
"branches": [ | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,29 @@ | ||
os: linux | ||
dist: focal | ||
services: | ||
- docker | ||
language: node_js | ||
node_js: | ||
- 17 | ||
|
||
stages: | ||
- name: "Build&Publish" | ||
- name: "publish" | ||
if: type = push | ||
|
||
jobs: | ||
include: | ||
- stage: "Build&Publish" | ||
name: "Build&Deploy" | ||
if: type = push | ||
- stage: "publish" | ||
name: "publish" | ||
if: branch = master | ||
env: | ||
- IMAGE=pivpn/pivpn.io | ||
install: | ||
- npm install @semantic-release/github -D | ||
- npm install @semantic-release/changelog -D | ||
- npm install @semantic-release-plus/docker -D | ||
before_script: | ||
- echo $dockerpass | docker login -u $dockeruser --password-stdin | ||
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin | ||
script: | ||
- docker build -t $webrepo:$tag . | ||
- docker push $webrepo:$tag | ||
- docker build -t $IMAGE . | ||
- 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
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