Skip to content

Commit

Permalink
fix: using npm ci for clean install
Browse files Browse the repository at this point in the history
  • Loading branch information
Amninder Kaur committed Jan 12, 2024
1 parent fa4b026 commit bcb56a8
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/ghcr-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e
package_name=$1
version=$2
echo $(pwd)

cd $package_name
tag_with_version=pit-$package_name:$version
tag_ref=ghcr.io/kindredgroup/pit-toolkit/$tag_with_version
Expand Down
4 changes: 2 additions & 2 deletions bin/npm-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ set -e

package_name=$1

echo $(pwd)
echo "Building $package_name"
cd $(pwd)/$package_name
npm install
npm ci
npm run build
npm run test
cd ../
22 changes: 22 additions & 0 deletions lock-manager/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
LOCAL_HOST_IP=$(ifconfig en0 | grep inet | grep -v inet6 | awk '{print $2}')

K8S_NAMESPACE=dev
REGISTRY_URL=ksp
#IMAGE_TAG=$(git rev-parse --short HEAD)
IMAGE_TAG=dev

SERVICE_NAME=lock-manager
SERVICE_PORT=60001

# POSTGRES
PGHOST=$LOCAL_HOST_IP
PGPORT=
PGUSER=
PGPASSWORD=
PGDATABASE=
PGMINPOOLSIZE=10

#DATABASE_URL=postgres://$PGUSER:$PGPASSWORD@$PGHOST:$PGPORT/$PGDATABASE?sslmode=disable

RENEW_BY_IN_SEC=60
ENVIRONMENT=dev

0 comments on commit bcb56a8

Please sign in to comment.