-
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.
create a release trigger script for the deps image build
- Loading branch information
Showing
5 changed files
with
54 additions
and
14 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
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,18 @@ | ||
#!/bin/bash | ||
|
||
ROOTPKGVER=$(node -p "require('../../package.json').version") | ||
SERVERPKGVER=$(node -p "require('../../server/package.json').version") | ||
FRONTPKGVER=$(node -p "require('../../front/package.json').version") | ||
|
||
echo "ROOTPKGVER=[$ROOTPKGVER] FRONTPKGVER=[$FRONTPKGVER] SERVERPKGVER=[$SERVERPKGVER]" | ||
|
||
npm pkg set version=$ROOTPKGVER | ||
npm pkg set "containerDeps.server"=$SERVERPKGVER | ||
npm pkg set "containerDeps.front"=$FRONTPKGVER | ||
|
||
if [[ "$MODE" == "-c" ]]; then | ||
echo "committing version changes" | ||
git add package.json | ||
git commit -m "dep image v$ROOTPKGVER front=$FRONTPKGVER server=$SERVERPKGVER" | ||
# this will trigger the CI-publish-deps-image action | ||
fi |
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
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