Skip to content

Commit 34d6600

Browse files
committed
fix up naming
1 parent 11c1a9d commit 34d6600

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cmd/drone-docker/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,9 @@ func main() {
293293
EnvVar: "PLUGIN_REGISTRY_TYPE",
294294
},
295295
cli.StringFlag{
296-
Name: "oidc-token",
297-
Usage: "OIDC token to use for authentication",
298-
EnvVar: "OIDC_ACCESS_TOKEN",
296+
Name: "access-token",
297+
Usage: "access token",
298+
EnvVar: "ACCESS_TOKEN",
299299
},
300300
}
301301

@@ -319,7 +319,7 @@ func run(c *cli.Context) error {
319319
Password: c.String("docker.password"),
320320
Email: c.String("docker.email"),
321321
Config: c.String("docker.config"),
322-
AccessToken: c.String("oidc-token"),
322+
AccessToken: c.String("access-token"),
323323
},
324324
CardPath: c.String("drone-card-path"),
325325
ArtifactFile: c.String("artifact-file"),

cmd/drone-gcr/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func loadConfig() Config {
114114
func main() {
115115
config := loadConfig()
116116
if config.AccessToken != "" {
117-
os.Setenv("OIDC_ACCESS_TOKEN", config.AccessToken)
117+
os.Setenv("ACCESS_TOKEN", config.AccessToken)
118118
} else if config.Username != "" && config.Password != "" {
119119
os.Setenv("DOCKER_USERNAME", config.Username)
120120
os.Setenv("DOCKER_PASSWORD", config.Password)

0 commit comments

Comments
 (0)