Skip to content

Commit

Permalink
Create release 0.1.5 (#111)
Browse files Browse the repository at this point in the history
Co-authored-by: Ong Jun Xiong <[email protected]>
Co-authored-by: Charisma Kausar <[email protected]>
Co-authored-by: Charisma Kausar <[email protected]>
Co-authored-by: Gabriel Goh <[email protected]>
  • Loading branch information
5 people authored Oct 16, 2023
1 parent 7dd6f07 commit c30904d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deployment/build-prod-images.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Build root docker image
docker build -t peerprep-base -f ../Dockerfile .
# Build root docker image with context set to be parent directory
docker build -t peerprep-base -f ../Dockerfile ..

# Create array of services
service_array=("admin-service" "collaboration-service" "gateway" "matching-service" "question-service" "user-service" "frontend")

# Build and publish prod images
# Build and publish prod images with context set to be parent directory
for s in ${service_array[@]}; do
docker build \
--tag asia-southeast1-docker.pkg.dev/$PROJECT_ID/$ARTIFACT_REPOSITORY_NAME/${service_array[s]}:latest \
--file prod-dockerfiles/Dockerfile.${service_array[s]}-prod .
--file prod-dockerfiles/Dockerfile.${service_array[s]}-prod ..
docker push asia-southeast1-docker.pkg.dev/$PROJECT_ID/$ARTIFACT_REPOSITORY_NAME/${service_array[s]}:latest
done

0 comments on commit c30904d

Please sign in to comment.