Skip to content

Commit 1c76187

Browse files
Merge pull request #306 from depot/ecr-public
2 parents a6c4b0c + 11dbd32 commit 1c76187

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ bin/depot:
44

55
.PHONY: image
66
image:
7-
docker --context=default buildx build --builder default -t ghcr.io/depot/cli:0.0.0-dev --load .
7+
docker --context=default buildx build --builder default -t public.ecr.aws/depot/cli:0.0.0-dev --load .
88

99
.PHONY: npm
1010
npm:

pkg/cmd/docker/docker.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func runConfigureBuildx(ctx context.Context, dockerCli command.Cli, project, tok
209209

210210
version := build.Version
211211

212-
image := "ghcr.io/depot/cli:" + version
212+
image := "public.ecr.aws/depot/cli:" + version
213213

214214
nodeName := "depot_" + projectName
215215
ng := &store.NodeGroup{
@@ -372,14 +372,14 @@ func UpdateDrivers(ctx context.Context, dockerCli command.Cli) error {
372372
var save bool
373373
for i, node := range nodeGroup.Nodes {
374374
image := node.DriverOpts["image"]
375-
if strings.HasPrefix(image, "ghcr.io/depot/cli") {
376-
nodeGroup.Nodes[i].DriverOpts["image"] = "ghcr.io/depot/cli:" + version
375+
if strings.HasPrefix(image, "ghcr.io/depot/cli") || strings.HasPrefix(image, "public.ecr.aws/depot/cli") {
376+
nodeGroup.Nodes[i].DriverOpts["image"] = "public.ecr.aws/depot/cli:" + version
377377
save = true
378378

379379
projectName := node.DriverOpts["env.DEPOT_PROJECT_ID"]
380380
token := node.DriverOpts["env.DEPOT_TOKEN"]
381381
platform := node.DriverOpts["env.DEPOT_PLATFORM"]
382-
_ = Bootstrap(ctx, dockerCli, "ghcr.io/depot/cli:"+version, projectName, token, platform)
382+
_ = Bootstrap(ctx, dockerCli, "public.ecr.aws/depot/cli:"+version, projectName, token, platform)
383383
}
384384

385385
}

pkg/load/proxy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/docker/go-connections/nat"
1717
)
1818

19-
var proxyImage = "ghcr.io/depot/cli:" + build.Version //
19+
var proxyImage = "public.ecr.aws/depot/cli:" + build.Version //
2020

2121
type ProxyContainer struct {
2222
ID string

0 commit comments

Comments
 (0)