-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from privacysandbox/main
synchronize dev from main branch
- Loading branch information
Showing
34 changed files
with
1,475 additions
and
1,617 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,12 @@ | ||
# ref : https://cloud.google.com/sdk/gcloud/reference/topic/gcloudignore | ||
|
||
#!include:.gitignore | ||
|
||
.gcloudignore | ||
.git | ||
.gitignore | ||
services/home/.docusaurus | ||
services/shop/.next | ||
|
||
# include services/home/build/* files into `gcloud builds submit` command | ||
!services/home/build |
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,24 @@ | ||
**Prior to creating a pull request, please follow all the steps in the [contributing guide](CONTRIBUTING.md).** | ||
|
||
# Description | ||
|
||
Please describe a summary of the changes. | ||
|
||
|
||
|
||
## Related Issue | ||
|
||
- Fixes #xxx | ||
|
||
|
||
## Affected services | ||
|
||
- [ ] Home | ||
- [ ] News | ||
- [ ] Shop | ||
- [ ] Travel | ||
- [ ] DSP | ||
- [ ] SSP | ||
- [ ] ALL | ||
|
||
Other: |
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,88 @@ | ||
steps: | ||
# Build the container image | ||
- name: "gcr.io/cloud-builders/docker" | ||
args: | ||
[ | ||
"build", | ||
"-t", | ||
"${_LOCATION}-docker.pkg.dev/$PROJECT_ID/${_REPOSITORY}/dsp", | ||
"services/dsp", | ||
] | ||
# # Push the container image to Container Registry | ||
# - name: "gcr.io/cloud-builders/docker" | ||
# args: | ||
# [ | ||
# "push", | ||
# "${_LOCATION}-docker.pkg.dev/$PROJECT_ID/${_REPOSITORY}/dsp:$SHORT_SHA", | ||
# ] | ||
# # Deploy container image to Cloud Run | ||
# - name: "gcr.io/cloud-builders/gcloud" | ||
# args: | ||
# [ | ||
# "run", | ||
# "deploy", | ||
# "dsp", | ||
# "--image", | ||
# "${_LOCATION}-docker.pkg.dev/$PROJECT_ID/${_REPOSITORY}/dsp:$SHORT_SHA", | ||
# "--region", | ||
# "${_LOCATION}", | ||
# "--platform", | ||
# "managed", | ||
# "-memory", | ||
# " 2Gi", | ||
# "--min-instances", | ||
# "1", | ||
# "--allow-unauthenticated", | ||
# ] | ||
# Build the container image | ||
- name: "gcr.io/cloud-builders/docker" | ||
args: | ||
[ | ||
"build", | ||
"-t", | ||
"${_LOCATION}-docker.pkg.dev/$PROJECT_ID/${_REPOSITORY}/home", | ||
"services/home", | ||
] | ||
# Build the container image | ||
- name: "gcr.io/cloud-builders/docker" | ||
args: | ||
[ | ||
"build", | ||
"-t", | ||
"${_LOCATION}-docker.pkg.dev/$PROJECT_ID/${_REPOSITORY}/news", | ||
"services/news", | ||
] | ||
# Build the container image | ||
- name: "gcr.io/cloud-builders/docker" | ||
args: | ||
[ | ||
"build", | ||
"-t", | ||
"${_LOCATION}-docker.pkg.dev/$PROJECT_ID/${_REPOSITORY}/shop", | ||
"services/shop", | ||
] | ||
# Build the container image | ||
- name: "gcr.io/cloud-builders/docker" | ||
args: | ||
[ | ||
"build", | ||
"-t", | ||
"${_LOCATION}-docker.pkg.dev/$PROJECT_ID/${_REPOSITORY}/ssp", | ||
"services/ssp", | ||
] | ||
# Build the container image | ||
- name: "gcr.io/cloud-builders/docker" | ||
args: | ||
[ | ||
"build", | ||
"-t", | ||
"${_LOCATION}-docker.pkg.dev/$PROJECT_ID/${_REPOSITORY}/travel", | ||
"services/travel", | ||
] | ||
images: | ||
- "${_LOCATION}-docker.pkg.dev/$PROJECT_ID/${_REPOSITORY}/dsp" | ||
- "${_LOCATION}-docker.pkg.dev/$PROJECT_ID/${_REPOSITORY}/home" | ||
- "${_LOCATION}-docker.pkg.dev/$PROJECT_ID/${_REPOSITORY}/news" | ||
- "${_LOCATION}-docker.pkg.dev/$PROJECT_ID/${_REPOSITORY}/shop" | ||
- "${_LOCATION}-docker.pkg.dev/$PROJECT_ID/${_REPOSITORY}/ssp" | ||
- "${_LOCATION}-docker.pkg.dev/$PROJECT_ID/${_REPOSITORY}/travel" |
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,36 @@ | ||
#!/usr/bin/env zsh | ||
|
||
# Copyright 2022 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# evaluate .env file | ||
source .env.deploy | ||
|
||
# setup Google Cloud SDK project | ||
gcloud config set project $GCP_PROJECT_NAME | ||
gcloud config get-value project | ||
|
||
# Enable Cloud Run API | ||
gcloud services enable artifactregistry.googleapis.com | ||
|
||
# create docker repository in Cloud Artifact Registry | ||
gcloud artifacts repositories create docker-repo --repository-format=docker \ | ||
--location=us-central1 --description="Privacy Sandbox Demos Docker repository" | ||
|
||
# set default repository | ||
gcloud config set artifacts/repository docker-repo | ||
|
||
|
||
# set default location | ||
gcloud config set artifacts/location us-central1 |
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,11 @@ | ||
|
||
# ref : https://cloud.google.com/sdk/gcloud/reference/topic/gcloudignore | ||
|
||
.gcloudignore | ||
.git | ||
.gitignore | ||
|
||
#!include:.gitignore | ||
|
||
# include build/* files into `gcloud builds submit` command | ||
!build |
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
Oops, something went wrong.