Skip to content

Commit

Permalink
Merge pull request #629 from rstudio/push-gcw-multiregion
Browse files Browse the repository at this point in the history
Expand Workbench for GCW to push to multiregion
  • Loading branch information
ianpittwood authored Aug 29, 2023
2 parents 9bcc070 + 8042520 commit 0f4cfe7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/actions/build-test-scan-push/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ runs:
run: |
if [ ! -z "${{ inputs.gcp-json }}" ]; then
gcloud auth configure-docker -q us-central1-docker.pkg.dev
gcloud auth configure-docker -q us-docker.pkg.dev
gcloud auth configure-docker -q asia-docker.pkg.dev
gcloud auth configure-docker -q europe-docker.pkg.dev
fi
- name: Build
Expand Down
11 changes: 9 additions & 2 deletions workbench-for-google-cloud-workstations/Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,15 @@ get-build-args:
get-build-tags:
#!/usr/bin/env bash
echo ${IMAGE_REGISTRY_NAME}:${RSW_TAG_VERSION},\
${IMAGE_REGISTRY_NAME}:latest
set -eu
regions=("us" "asia" "europe" "us-central-1")
tag_array=()
for region in "${regions[@]}"; do
tag_array+=("$region-docker.pkg.dev/posit-images/cloud-workstations/workbench:${RSW_TAG_VERSION}")
tag_array+=("$region-docker.pkg.dev/posit-images/cloud-workstations/workbench:latest")
done
IFS=","
echo "${tag_array[*]}"
# Build Workbench image - just build 2022.07.2+576.pro12 rstudio/rstudio-workbench-gcw:2022.07.2
build *TAGS="":
Expand Down

0 comments on commit 0f4cfe7

Please sign in to comment.