-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into blog/impact-metrics-smol-edits
- Loading branch information
Showing
10 changed files
with
173 additions
and
55 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
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 |
---|---|---|
|
@@ -53,25 +53,26 @@ jobs: | |
shell: bash | ||
run: | | ||
cd ops/external-prs && | ||
gcloud iam service-accounts keys create dummy.json --iam-account=[email protected] && | ||
bash scripts/rotate-service-account.sh [email protected] dummy.json && | ||
pnpm tools refresh-gcp-credentials --secret=false ${{ github.repository }} testing dummy.json GOOGLE_TEST_DUMMY_CREDENTIALS_JSON | ||
# These credentials are intended to be secret | ||
- name: Refresh credentials for the bigquery-admin user on the external-prs-app environment | ||
shell: bash | ||
run: | | ||
cd ops/external-prs && | ||
gcloud iam service-accounts keys create bigquery-admin.json --iam-account=[email protected] && | ||
bash scripts/rotate-service-account.sh [email protected] bigquery-admin.json && | ||
pnpm tools refresh-gcp-credentials ${{ github.repository }} external-prs-app bigquery-admin.json GOOGLE_BQ_ADMIN_CREDENTIALS_JSON | ||
rebuild-docker-public-vars: | ||
name: rebuild-docker-public-vars | ||
environment: testing | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
packages: write | ||
|
||
env: | ||
DOCKER_PLATFORM: "amd64" | ||
# Frontend variables | ||
NODE_ENV: ${{ vars.NODE_ENV }} | ||
PLASMIC_PROJECT_ID: ${{ vars.PLASMIC_PROJECT_ID }} | ||
|
@@ -86,12 +87,20 @@ jobs: | |
# Indexer variables | ||
X_GITHUB_GRAPHQL_API: ${{ vars.X_GITHUB_GRAPHQL_API }} | ||
GOOGLE_PROJECT_ID: "opensource-observer" | ||
PUBLIC_VARS_TEST: "THISISATEST" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Write public vars | ||
run: | | ||
bash .github/scripts/save-public-vars.sh ${{ github.sha }} \ | ||
|
@@ -104,4 +113,5 @@ jobs: | |
NEXT_PUBLIC_FEEDBACK_FARM_ID \ | ||
GOOGLE_TEST_DUMMY_CREDENTIALS_JSON \ | ||
X_GITHUB_GRAPHQL_API \ | ||
GOOGLE_PROJECT_ID | ||
GOOGLE_PROJECT_ID \ | ||
PUBLIC_VARS_TEST |
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
Oops, something went wrong.