diff --git a/.github/actions/docker-setup/action.yaml b/.github/actions/docker-setup/action.yaml index 7550a43e3df3c..2755c30241429 100644 --- a/.github/actions/docker-setup/action.yaml +++ b/.github/actions/docker-setup/action.yaml @@ -83,13 +83,6 @@ runs: service_account: ${{ inputs.GCP_SERVICE_ACCOUNT_EMAIL }} export_environment_variables: ${{ inputs.EXPORT_GCP_PROJECT_VARIABLES }} - - name: Login to us-west1 Google Artifact Registry - uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b # pin@v2 - with: - registry: us-west1-docker.pkg.dev - username: oauth2accesstoken - password: ${{ steps.auth.outputs.access_token }} - - name: Login to US multi-region Google Artifact Registry uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b # pin@v2 with: diff --git a/.github/workflows/copy-images-to-dockerhub.yaml b/.github/workflows/copy-images-to-dockerhub.yaml index 9f26522fcddad..fdd86d46fb18d 100644 --- a/.github/workflows/copy-images-to-dockerhub.yaml +++ b/.github/workflows/copy-images-to-dockerhub.yaml @@ -59,7 +59,6 @@ jobs: FORCE_COLOR: 3 # Force color output as per https://github.com/google/zx#using-github-actions GIT_SHA: ${{ inputs.GIT_SHA || github.sha }} # If GIT_SHA is not provided, use the sha of the triggering branch GCP_DOCKER_ARTIFACT_REPO: ${{ secrets.GCP_DOCKER_ARTIFACT_REPO }} - GCP_DOCKER_ARTIFACT_REPO_US: ${{ secrets.GCP_DOCKER_ARTIFACT_REPO_US }} AWS_ACCOUNT_ID: ${{ secrets.AWS_ECR_ACCOUNT_NUM }} IMAGE_TAG_PREFIX: ${{ inputs.image_tag_prefix }} run: ./docker/release-images.mjs --wait-for-image-seconds=3600 diff --git a/.github/workflows/docker-build-test.yaml b/.github/workflows/docker-build-test.yaml index 28a752a883f63..7ce098976e2f0 100644 --- a/.github/workflows/docker-build-test.yaml +++ b/.github/workflows/docker-build-test.yaml @@ -48,7 +48,6 @@ concurrency: env: GCP_DOCKER_ARTIFACT_REPO: ${{ secrets.GCP_DOCKER_ARTIFACT_REPO }} - GCP_DOCKER_ARTIFACT_REPO_US: ${{ secrets.GCP_DOCKER_ARTIFACT_REPO_US }} AWS_ECR_ACCOUNT_NUM: ${{ secrets.ENV_ECR_AWS_ACCOUNT_NUM }} # In case of pull_request events by default github actions merges main into the PR branch and then runs the tests etc # on the prospective merge result instead of only on the tip of the PR. diff --git a/.github/workflows/workflow-run-docker-rust-build.yaml b/.github/workflows/workflow-run-docker-rust-build.yaml index 922d62b3b4898..62fa2b0b4b885 100644 --- a/.github/workflows/workflow-run-docker-rust-build.yaml +++ b/.github/workflows/workflow-run-docker-rust-build.yaml @@ -64,7 +64,6 @@ env: FEATURES: ${{ inputs.FEATURES }} BUILD_ADDL_TESTING_IMAGES: ${{ inputs.BUILD_ADDL_TESTING_IMAGES }} GCP_DOCKER_ARTIFACT_REPO: ${{ secrets.GCP_DOCKER_ARTIFACT_REPO }} - GCP_DOCKER_ARTIFACT_REPO_US: ${{ secrets.GCP_DOCKER_ARTIFACT_REPO_US }} AWS_ECR_ACCOUNT_NUM: ${{ secrets.ENV_ECR_AWS_ACCOUNT_NUM }} TARGET_REGISTRY: ${{ inputs.TARGET_REGISTRY }} diff --git a/docker/builder/docker-bake-rust-all.hcl b/docker/builder/docker-bake-rust-all.hcl index 1b6194266c074..5f289bd848083 100644 --- a/docker/builder/docker-bake-rust-all.hcl +++ b/docker/builder/docker-bake-rust-all.hcl @@ -22,8 +22,6 @@ variable "BUILT_VIA_BUILDKIT" {} variable "GCP_DOCKER_ARTIFACT_REPO" {} -variable "GCP_DOCKER_ARTIFACT_REPO_US" {} - variable "AWS_ECR_ACCOUNT_NUM" {} variable "TARGET_REGISTRY" { @@ -235,16 +233,12 @@ function "generate_tags" { result = TARGET_REGISTRY == "remote-all" ? [ "${GCP_DOCKER_ARTIFACT_REPO}/${target}:${IMAGE_TAG_PREFIX}${GIT_SHA}", "${GCP_DOCKER_ARTIFACT_REPO}/${target}:${IMAGE_TAG_PREFIX}${NORMALIZED_GIT_BRANCH_OR_PR}", - "${GCP_DOCKER_ARTIFACT_REPO_US}/${target}:${IMAGE_TAG_PREFIX}${GIT_SHA}", - "${GCP_DOCKER_ARTIFACT_REPO_US}/${target}:${IMAGE_TAG_PREFIX}${NORMALIZED_GIT_BRANCH_OR_PR}", "${ecr_base}/${target}:${IMAGE_TAG_PREFIX}${GIT_SHA}", "${ecr_base}/${target}:${IMAGE_TAG_PREFIX}${NORMALIZED_GIT_BRANCH_OR_PR}", ] : ( TARGET_REGISTRY == "gcp" || TARGET_REGISTRY == "remote" ? [ "${GCP_DOCKER_ARTIFACT_REPO}/${target}:${IMAGE_TAG_PREFIX}${GIT_SHA}", "${GCP_DOCKER_ARTIFACT_REPO}/${target}:${IMAGE_TAG_PREFIX}${NORMALIZED_GIT_BRANCH_OR_PR}", - "${GCP_DOCKER_ARTIFACT_REPO_US}/${target}:${IMAGE_TAG_PREFIX}${GIT_SHA}", - "${GCP_DOCKER_ARTIFACT_REPO_US}/${target}:${IMAGE_TAG_PREFIX}${NORMALIZED_GIT_BRANCH_OR_PR}", ] : [ // "local" or any other value "aptos-core/${target}:${IMAGE_TAG_PREFIX}${GIT_SHA}-from-local", "aptos-core/${target}:${IMAGE_TAG_PREFIX}from-local", diff --git a/docker/release-images.mjs b/docker/release-images.mjs index 795a3aaecfe48..09608e875635f 100755 --- a/docker/release-images.mjs +++ b/docker/release-images.mjs @@ -20,7 +20,7 @@ // - crane - https://github.com/google/go-containerregistry/tree/main/cmd/crane#installation // - pnpm - https://pnpm.io/installation // 2. docker login - with authorization to push to the `aptoslabs` org -// 3. gcloud auth configure-docker us-west1-docker.pkg.dev +// 3. gcloud auth configure-docker us-docker.pkg.dev // 4. gcloud auth login --update-adc // 5. AWS CLI credentials configured // @@ -90,7 +90,7 @@ chdir(dirname(process.argv[1]) + "/.."); // change workdir to the root of the re execSync("pnpm install --frozen-lockfile", { stdio: "inherit" }); await import("zx/globals"); -const REQUIRED_ARGS = ["GIT_SHA", "GCP_DOCKER_ARTIFACT_REPO", "GCP_DOCKER_ARTIFACT_REPO_US", "AWS_ACCOUNT_ID", "IMAGE_TAG_PREFIX"]; +const REQUIRED_ARGS = ["GIT_SHA", "GCP_DOCKER_ARTIFACT_REPO", "AWS_ACCOUNT_ID", "IMAGE_TAG_PREFIX"]; const OPTIONAL_ARGS = ["WAIT_FOR_IMAGE_SECONDS"]; const parsedArgs = {}; @@ -135,7 +135,6 @@ if (process.env.CI === "true") { const AWS_ECR = `${parsedArgs.AWS_ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/aptos`; const GCP_ARTIFACT_REPO = parsedArgs.GCP_DOCKER_ARTIFACT_REPO; -const GCP_ARTIFACT_REPO_US = parsedArgs.GCP_DOCKER_ARTIFACT_REPO_US; const DOCKERHUB = "docker.io/aptoslabs"; const INTERNAL_TARGET_REGISTRIES = [ diff --git a/testsuite/forge.py b/testsuite/forge.py index 8bbcfe2b284aa..16c17380506fa 100644 --- a/testsuite/forge.py +++ b/testsuite/forge.py @@ -59,7 +59,7 @@ MULTIREGION_KUBECONFIG_DIR = "/etc/multiregion-kubeconfig" MULTIREGION_KUBECONFIG_PATH = f"{MULTIREGION_KUBECONFIG_DIR}/kubeconfig" -GAR_REPO_NAME = "us-west1-docker.pkg.dev/aptos-global/aptos-internal" +GAR_REPO_NAME = "us-docker.pkg.dev/aptos-registry/docker" @dataclass