Skip to content

Commit

Permalink
Change 1password vault to production (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
marccampbell authored Oct 17, 2024
1 parent b1fb5ca commit 54ff59c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@ docs:

.PHONE: release
release:
dagger call release --one-password-service-account env:OP_SERVICE_ACCOUNT --version $(version)
dagger call release --one-password-service-account env:OP_SERVICE_ACCOUNT_PRODUCTION --version $(version)
10 changes: 5 additions & 5 deletions dagger/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (r *Replicated) Release(
// +default=false
clean bool,

onePasswordServiceAccount *dagger.Secret,
onePasswordServiceAccountProduction *dagger.Secret,
) error {
gitTreeOK, err := checkGitTree(ctx, source)
if err != nil {
Expand Down Expand Up @@ -67,17 +67,17 @@ func (r *Replicated) Release(
WithFile("/replicated", replicatedBinary)

username, err := dag.Onepassword().FindSecret(
onePasswordServiceAccount,
"Developer Automation",
onePasswordServiceAccountProduction,
"Developer Automation Production",
"Docker Hub Release Account",
"username",
).Plaintext(ctx)
if err != nil {
panic(err)
}
password := dag.Onepassword().FindSecret(
onePasswordServiceAccount,
"Developer Automation",
onePasswordServiceAccountProduction,
"Developer Automation Production",
"Docker Hub Release Account",
"password",
)
Expand Down

0 comments on commit 54ff59c

Please sign in to comment.