Skip to content

Commit

Permalink
chore: fix poetry publish auth
Browse files Browse the repository at this point in the history
  • Loading branch information
markphelps committed Dec 26, 2023
1 parent 6eddbfa commit aebe61c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ func pythonBuild(ctx context.Context, client *dagger.Client, hostDirectory *dagg

pypiAPIKeySecret := client.SetSecret("pypi-api-key", os.Getenv("PYPI_API_KEY"))

_, err = container.WithEnvVariable("POETRY_HTTP_BASIC_PUBLISH_USERNAME", "__token__").
WithSecretVariable("POETRY_HTTP_BASIC_PUBLISH_PASSWORD", pypiAPIKeySecret).
_, err = container.WithSecretVariable("POETRY_PYPI_TOKEN_PYPI", pypiAPIKeySecret).
WithExec([]string{"poetry", "publish", "-v"}).
Sync(ctx)

Expand Down

0 comments on commit aebe61c

Please sign in to comment.