-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
17 lines (17 loc) · 1.08 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"name": "main-website",
"version": "24.6.0",
"main": "index.js",
"repository": "[email protected]:cismet/main-website.git",
"author": "Thorsten Hell <[email protected]>",
"license": "MIT",
"scripts": {
"start": "dc up",
"postversion": "sed '/^.*\"version\":.*$/d' package.json > .package.json.without.version && echo $npm_package_version > .version && git rev-parse HEAD > .githash",
"newSnapshot": "npm version preminor --preid=SNAPSHOT",
"bumpSnapshot": "npm version prerelease --preid=SNAPSHOT",
"init:docker:multiplatform": "docker buildx create --use",
"build:docker": "npm run postversion && VERSION=`echo $npm_package_version| sed 's/\\.[0-9]*-SNAPSHOT.*$/-SNAPSHOT/'`; docker buildx build --platform=linux/amd64,linux/arm64 -t cismet/$npm_package_name -t cismet/$npm_package_name:$VERSION .",
"publish:docker": "npm run postversion && VERSION=`echo $npm_package_version| sed 's/\\.[0-9]*-SNAPSHOT.*$/-SNAPSHOT/'`; docker buildx build --push --platform=linux/amd64,linux/arm64 -t cismet/$npm_package_name -t cismet/$npm_package_name:$VERSION ."
}
}