Skip to content

Commit

Permalink
chore: switch curl step to debian
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Phelps <[email protected]>
  • Loading branch information
markphelps committed Sep 7, 2024
1 parent 5e09542 commit a2d8367
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package/ffi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,9 @@ func dartBuild(ctx context.Context, client *dagger.Client, hostDirectory *dagger
tokenUrl = fmt.Sprintf("%s?audience=%s", os.Getenv("ACTIONS_ID_TOKEN_REQUEST_URL"), aud)
)

_, err = client.Container().From("alpine:latest").
_, err = client.Container().From("debian:bookworm-slim").
WithExec([]string{"apt-get", "update"}).
WithExec([]string{"apt-get", "install", "-y", "curl"}).
WithExec([]string{"curl", "-s", "-H", "Authorization: Bearer " + os.Getenv("ACTIONS_ID_TOKEN_REQUEST_TOKEN"), tokenUrl, ">", "/tmp/token"}).
File("/tmp/token").
Export(ctx, "tmp/token")
Expand Down

0 comments on commit a2d8367

Please sign in to comment.