Skip to content

Commit

Permalink
chore(rust): fix push pipeline (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
markphelps authored Jan 11, 2024
1 parent 9db8847 commit 4351508
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ target/
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

.vscode/
.vscode/
.envrc
2 changes: 1 addition & 1 deletion build/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func rustBuild(ctx context.Context, client *dagger.Client, hostDirectory *dagger
cargoAPIKeySecret := client.SetSecret("rust-api-key", os.Getenv("CRATES_TOKEN"))

_, err = container.WithSecretVariable("CRATES_TOKEN", cargoAPIKeySecret).
WithExec([]string{"cargo", "publish", "--token", "${CRATES_TOKEN}"}).
WithExec([]string{"sh", "-c", "cargo publish --token $CRATES_TOKEN"}).
Sync(ctx)

return err
Expand Down

0 comments on commit 4351508

Please sign in to comment.