Skip to content

Commit

Permalink
[community-platform] push docker images to GCP as well
Browse files Browse the repository at this point in the history
  • Loading branch information
geekflyer authored and aptos-bot committed May 13, 2022
1 parent a17b536 commit 0421f96
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: 2.1
orbs:
aws-cli: circleci/[email protected]
aws-ecr: circleci/[email protected]
gcp-gcr: circleci/[email protected]
kubernetes: circleci/[email protected]
slack: circleci/[email protected]

Expand Down Expand Up @@ -103,6 +104,8 @@ jobs:
- checkout
- aws-setup
- aws-ecr-setup
- gcp-gcr/gcr-auth:
registry-url: us-west1-docker.pkg.dev
- run: echo $GITHUB_CONTAINER_REGISTRY_TOKEN | docker login ghcr.io -u USERNAME --password-stdin
- run:
name: Build or skip
Expand Down Expand Up @@ -284,7 +287,9 @@ workflows:
- ecosystem-lint
- unit-test
- build-push-community-platform:
context: aws-dev
context:
- aws-dev
- gcp-global
- docker-build-push:
context: aws-dev
- ecosystem-test:
Expand Down
6 changes: 5 additions & 1 deletion ecosystem/platform/server/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

variable "GIT_SHA1" {}
variable "AWS_ECR_ACCOUNT_URL" {}
variable "GCP_DOCKER_ARTIFACT_REPO" {}

variable "gh_image_cache" {
default = "ghcr.io/aptos-labs/aptos-core/community-platform"
Expand All @@ -21,5 +22,8 @@ target "community-platform" {
context = "."
cache-from = ["type=registry,ref=${gh_image_cache}"]
cache-to = ["type=registry,ref=${gh_image_cache},mode=max"]
tags = ["${AWS_ECR_ACCOUNT_URL}/aptos/community-platform:${GIT_SHA1}"]
tags = [
"${AWS_ECR_ACCOUNT_URL}/aptos/community-platform:${GIT_SHA1}",
"${GCP_DOCKER_ARTIFACT_REPO}/community-platform:${GIT_SHA1}",
]
}

0 comments on commit 0421f96

Please sign in to comment.