bluesky
Send posts to Bluesky from your Dagger pipelines. Can connect to any Bluesky instance but defaults to the public instance at https://bsky.social.Installation
dagger install github.com/levlaz/daggerverse/bluesky@v0.4.2
Entrypoint
Return Type
Bluesky
Example
dagger -m github.com/levlaz/daggerverse/bluesky@47e8418227838f0267f116f41aa28f9fed0587de call \
func (m *MyModule) Example() *dagger.Bluesky {
return dag.
Bluesky()
}
@function
def example() -> dagger.Bluesky:
return (
dag.bluesky()
)
@func()
example(): Bluesky {
return dag
.bluesky()
}
Types
Bluesky 🔗
Bluesky Dagger Module
post() 🔗
Send post to Bluesky, if longer than 300 characters, it will be chunked into multiple posts.
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
String ! | - | - Email address of the Bluesky account | |
password | Secret ! | - | - Password of the Bluesky account, should be a Dagger Secret |
text | String ! | - | - Content to post on Bluesky |
host | String ! | "https://bsky.social" | - Host of the Bluesky instance, defaults to the public instance |
Example
dagger -m github.com/levlaz/daggerverse/bluesky@47e8418227838f0267f116f41aa28f9fed0587de call \
post --email string --password env:MYSECRET --text string --host string
func (m *MyModule) Example(ctx context.Context, email string, password *dagger.Secret, text string, host string) string {
return dag.
Bluesky().
Post(ctx, email, password, text, host)
}
@function
async def example(email: str, password: dagger.Secret, text: str, host: str) -> str:
return await (
dag.bluesky()
.post(email, password, text, host)
)
@func()
async example(email: string, password: Secret, text: string, host: string): Promise<string> {
return dag
.bluesky()
.post(email, password, text, host)
}