-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: KeisukeYamashita <[email protected]>
- Loading branch information
1 parent
2a49799
commit 9d234f2
Showing
4 changed files
with
0 additions
and
66 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 |
---|---|---|
|
@@ -10,9 +10,6 @@ concurrency: | |
env: | ||
GCP_REGION: us-central1 | ||
|
||
# TODO: Remove after dockerizing the web. | ||
GCS_DEST: gs://cms.test.reearth.dev | ||
|
||
# server | ||
SERVER_IMAGE: reearth/reearth-cms:nightly | ||
SERVER_IMAGE_NAME: us-central1-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/reearth/reearth-cms:nightly | ||
|
@@ -29,42 +26,6 @@ env: | |
WORKER_IMAGE_GCP: us-central1-docker.pkg.dev/reearth-oss/reearth/reearth-cms-worker:nightly | ||
|
||
jobs: | ||
# TODO: Remove after dockerizing the web. | ||
deploy_web_gcs: | ||
name: Deploy web to test env | ||
if: github.event.repository.full_name == 'reearth/reearth-cms' && github.event.workflow_run.name == 'ci-web' && github.event.workflow_run.conclusion != 'failure' && github.event.workflow_run.head_branch == 'main' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read # To checkout | ||
id-token: write # To authenticate with Google Cloud using OIDC | ||
steps: | ||
- uses: actions/create-github-app-token@v1 | ||
id: app-token | ||
with: | ||
app-id: ${{ vars.GH_APP_ID }} | ||
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} | ||
|
||
- name: get latest web artifact | ||
uses: dawidd6/[email protected] | ||
with: | ||
github_token: ${{ steps.app-token.outputs.token }} | ||
workflow: ci_web.yml | ||
workflow_conclusion: success | ||
branch: main | ||
name: reearth-cms-web | ||
check_artifacts: true | ||
search_artifacts: true | ||
- name: Extract | ||
run: tar -xvf reearth-cms-web.tar.gz | ||
- uses: google-github-actions/auth@v2 | ||
with: | ||
service_account: ${{ secrets.GCP_SA_EMAIL }} | ||
workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }} | ||
- name: Set up Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v2 | ||
- name: Deploy | ||
run: gsutil -m -h "Cache-Control:no-store" rsync -x "^reearth_config\\.json$" -dr reearth-cms-web/ $GCS_DEST | ||
|
||
deploy_server: | ||
name: Deploy server to test env | ||
runs-on: ubuntu-latest | ||
|
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