-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
synchronize dev from main branch #62
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
cd14c92
[github] add PULL_REQUEST_TEMPLATE.md
JackJey 922b972
[dsp] cleanup dsp
JackJey 18df4f3
[ssp] cleanup ssp
JackJey 9899704
[shop] update dependencies
JackJey 97c17cb
[shop] enable ServerActions
JackJey e12c88f
[shop] migrate api
JackJey 5879dd4
[shop] migrate lib
JackJey 2dc4ada
[shop] migrate components
JackJey 3e19ae6
[shop] use start on dockerfile
JackJey 717466f
[shop] update next.js to v13.4.8
JackJey bcef6df
[shop] replace localhost to ip
JackJey 727630e
[.env] update origin trial tokens
Seburan 8dda7fb
[shop] update dependencies
JackJey f1828d6
[shop] update node 18 to 20
JackJey ba19674
[shop] fix build fail
JackJey 6e09673
[shop] add ncu task for update dependencies
JackJey f71409d
[shop] update dependencies
JackJey 1da10b4
Merge pull request #50 from privacysandbox/shop
Seburan d5ee3c8
Merge pull request #48 from Seburan/fix-ot-token
JackJey d617535
[shop] install server-only
JackJey 6eed7aa
[shop] use server-only for process.env
JackJey 433a4e6
Merge pull request #47 from privacysandbox/pull-request-template
Seburan bc9d83d
Merge pull request #51 from privacysandbox/shop
Seburan c78d746
Add OpenSSF Scorecard badge to README
pmeric 9bfcb3f
[cicd] migrate to artifact registry
Seburan ef2e687
Merge pull request #53 from Seburan/migrate-artifact-registry
JackJey 4fde791
Merge pull request #52 from pmeric/scorecard-badge
Seburan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / Scorecard
Pinned-Dependencies