Fixing bugs
This commit is contained in:
parent
ee4a8d4c9b
commit
b91988b907
|
|
@ -9,37 +9,34 @@ git checkout -b release/"$VERSION_NUMBER"
|
|||
|
||||
#UPDATE PACKAGE FILE
|
||||
echo "Updating Angular App Version"
|
||||
cd ./source/ticketUI || exit
|
||||
cd source
|
||||
cd ticketUI || exit
|
||||
jq '."version" = "'"$VERSION_NUMBER"'"' package.json > package."$VERSION_NUMBER".json
|
||||
mv package."$VERSION_NUMBER".json package.json
|
||||
cd cd..
|
||||
|
||||
#BUILD API
|
||||
echo "Building API:" "$VERSION_NUMBER"
|
||||
cd ./source/ticketAPI || exit
|
||||
cd ticketAPI || exit
|
||||
dotnet publish -c release -o artifacts /p:DebugType=None /p:DebugSymbols=false
|
||||
cd ..
|
||||
|
||||
#BUILD UI
|
||||
echo "Building UI:" "$VERSION_NUMBER"
|
||||
cd ./source/ticketUI || exit
|
||||
cd ticketUI || exit
|
||||
ng build --configuration=production
|
||||
cd ..
|
||||
|
||||
#PACKAGEING API
|
||||
echo "Creating Docker Container for API"
|
||||
cd ./source/ticketAPI || exit
|
||||
cd ticketAPI || exit
|
||||
docker buildx create --name apibuilder-"$VERSION_NUMBER" --driver docker-container --bootstrap --use
|
||||
docker buildx build --platform linux/amd64,linux/arm64 --push -t terralilly85/follicle-api:"$VERSION_NUMBER" .
|
||||
cd ..
|
||||
|
||||
#PACKAGING UI
|
||||
echo "Creating Docker Container for UI"
|
||||
cd ./source/ticketUI || exit
|
||||
cd ticketUI || exit
|
||||
docker buildx create --name uibuilder-"$VERSION_NUMBER" --driver docker-container --bootstrap --use
|
||||
docker buildx build --platform linux/amd64,linux/arm64 --push -t terralilly85/follicle-ui:"$VERSION_NUMBER" .
|
||||
cd ..
|
||||
|
||||
#CLEAN UP ARTIFACTS
|
||||
echo "Cleaning up artifacts"
|
||||
rm -r ./source/ticketAPI/artifacts
|
||||
rm -r ./source/ticketUI/dist
|
||||
Loading…
Reference in New Issue
Block a user