Skip to content

Commit

Permalink
feat(boms): Change default dockerRegistry to GAR (spinnaker#1657)
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Tomsu committed May 6, 2020
1 parent 75b4174 commit e827e8e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
public class ArtifactSourcesConfig {
String gitPrefix = "https://github.com/spinnaker";
String googleImageProject = "marketplace-spinnaker-release";
String dockerRegistry = "gcr.io/spinnaker-marketplace";
String dockerRegistry = "us-docker.pkg.dev/spinnaker-community/releases";
String debianRepository = "https://dl.bintray.com/spinnaker-releases/debians";

public ArtifactSourcesConfig mergeWithBomSources(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
@ConfigurationProperties("spinnaker.config.input.gcs")
public class WriteableProfileRegistryProperties {
private String jsonPath = "";
private String project = "spinnaker-marketplace";
private String project = "spinnaker-community";
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public boolean runsOnJvm() {
}

public String getArtifactId(DeploymentConfiguration deploymentConfiguration) {
return "gcr.io/kubernetes-spinnaker/redis-cluster:v2";
return "us-docker.pkg.dev/spinnaker-community/releases/redis-cluster:v2";
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion halyard-web/config/halyard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ halconfig:
spinnaker:
artifacts:
debian: https://dl.bintray.com/spinnaker-releases/debians
docker: gcr.io/spinnaker-marketplace
docker: us-docker.pkg.dev/spinnaker-community/releases
config:
input:
gcs:
Expand Down
2 changes: 1 addition & 1 deletion install/Installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -o pipefail

REPOSITORY_URL="https://dl.bintray.com/spinnaker-releases/debians"
SPINNAKER_REPOSITORY_URL="https://dl.bintray.com/spinnaker-releases/debians"
SPINNAKER_DOCKER_REGISTRY="gcr.io/spinnaker-marketplace"
SPINNAKER_DOCKER_REGISTRY="us-docker.pkg.dev/spinnaker-community/releases"
SPINNAKER_GCE_PROJECT="marketplace-spinnaker-release"
CONFIG_BUCKET="halconfig"

Expand Down
9 changes: 9 additions & 0 deletions release/promote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,22 @@ function pull_tag_push() {
}

if [ "$PLATFORM" = "docker" ]; then
# Still publishing to old spinnaker-marketplace project until all known Halyard installation instructions are updated.
PUBLISH_HALYARD_DOCKER_IMAGE_BASE=${PUBLISH_HALYARD_DOCKER_IMAGE_BASE:-gcr.io/spinnaker-marketplace/halyard}
SOURCE_IMAGE=$PUBLISH_HALYARD_DOCKER_IMAGE_BASE:$SOURCE_VERSION
TARGET_IMAGE=$PUBLISH_HALYARD_DOCKER_IMAGE_BASE:$TARGET_VERSION

pull_tag_push $SOURCE_IMAGE $TARGET_IMAGE
pull_tag_push ${SOURCE_IMAGE}-ubuntu ${TARGET_IMAGE}-ubuntu

PUBLISH_HALYARD_ARTIFACT_DOCKER_IMAGE_SRC_BASE=${PUBLISH_HALYARD_ARTIFACT_DOCKER_IMAGE_SRC_BASE:-us-docker.pkg.dev/spinnaker-community/nightly/halyard}
PUBLISH_HALYARD_ARTIFACT_DOCKER_IMAGE_TARGET_BASE=${PUBLISH_HALYARD_ARTIFACT_DOCKER_IMAGE_TARGET_BASE:-us-docker.pkg.dev/spinnaker-community/releases/halyard}
SOURCE_IMAGE=PUBLISH_HALYARD_ARTIFACT_DOCKER_IMAGE_SRC_BASE:$SOURCE_VERSION
TARGET_IMAGE=PUBLISH_HALYARD_ARTIFACT_DOCKER_IMAGE_TARGET_BASE:$TARGET_VERSION

pull_tag_push $SOURCE_IMAGE $TARGET_IMAGE
pull_tag_push ${SOURCE_IMAGE}-ubuntu ${TARGET_IMAGE}-ubuntu

else
PUBLISH_HALYARD_BUCKET_BASE_URL=${PUBLISH_HALYARD_BUCKET_BASE_URL:-gs://spinnaker-artifacts/halyard}
SOURCE_URL=$PUBLISH_HALYARD_BUCKET_BASE_URL/$SOURCE_VERSION/$PLATFORM/halyard.tar.gz
Expand Down

0 comments on commit e827e8e

Please sign in to comment.