ci
No long description provided.
Installation
dagger install github.com/levlaz/snippetbox@624cb70954b54d775e64feb60761df530b7e6336
Entrypoint
Return Type
Ci
Example
dagger -m github.com/levlaz/snippetbox@624cb70954b54d775e64feb60761df530b7e6336 call \
func (m *myModule) example() *Ci {
return dag.
Ci()
}
@function
def example() -> dag.Ci:
return (
dag.ci()
)
@func()
example(): Ci {
return dag
.ci()
}
Types
Ci 🔗
lint() 🔗
Lint
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory | - | No description provided |
Example
dagger -m github.com/levlaz/snippetbox@624cb70954b54d775e64feb60761df530b7e6336 call \
lint
func (m *myModule) example() *Container {
return dag.
Ci().
Lint()
}
@function
def example() -> dagger.Container:
return (
dag.ci()
.lint()
)
@func()
example(): Container {
return dag
.ci()
.lint()
}
test() 🔗
Run test suite
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory | - | No description provided |
Example
dagger -m github.com/levlaz/snippetbox@624cb70954b54d775e64feb60761df530b7e6336 call \
test
func (m *myModule) example() *Container {
return dag.
Ci().
Test()
}
@function
def example() -> dagger.Container:
return (
dag.ci()
.test()
)
@func()
example(): Container {
return dag
.ci()
.test()
}
ci() 🔗
Run entire CI pipeline example usage: “dagger call -m ci ci –dir .”
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory | - | No description provided |
token | Secret | - | No description provided |
commit | String | "latest" | No description provided |
Example
dagger -m github.com/levlaz/snippetbox@624cb70954b54d775e64feb60761df530b7e6336 call \
ci
func (m *myModule) example(ctx context.Context) string {
return dag.
Ci().
Ci(ctx)
}
@function
async def example() -> str:
return await (
dag.ci()
.ci()
)
@func()
async example(): Promise<string> {
return dag
.ci()
.ci()
}
publish() 🔗
publish to dockerhub
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory | - | No description provided |
token | Secret | - | No description provided |
commit | String | "latest" | No description provided |
Example
dagger -m github.com/levlaz/snippetbox@624cb70954b54d775e64feb60761df530b7e6336 call \
publish
func (m *myModule) example(ctx context.Context) string {
return dag.
Ci().
Publish(ctx)
}
@function
async def example() -> str:
return await (
dag.ci()
.publish()
)
@func()
async example(): Promise<string> {
return dag
.ci()
.publish()
}
serve() 🔗
Serve development site example usage: “dagger call serve –dir=. up.”
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory | - | No description provided |
Example
dagger -m github.com/levlaz/snippetbox@624cb70954b54d775e64feb60761df530b7e6336 call \
serve
func (m *myModule) example() *Service {
return dag.
Ci().
Serve()
}
@function
def example() -> dagger.Service:
return (
dag.ci()
.serve()
)
@func()
example(): Service {
return dag
.ci()
.serve()
}
debug() 🔗
Debug build container with MariaDB service attached
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory | - | No description provided |
Example
dagger -m github.com/levlaz/snippetbox@624cb70954b54d775e64feb60761df530b7e6336 call \
debug
func (m *myModule) example() *Container {
return dag.
Ci().
Debug()
}
@function
def example() -> dagger.Container:
return (
dag.ci()
.debug()
)
@func()
example(): Container {
return dag
.ci()
.debug()
}
withPrivateContainer() 🔗
Get Private Container
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
address | String ! | - | full private image address in the form of [host]/[user]/[repo]:[tag] |
username | String ! | - | registry username |
token | Secret ! | - | registry token |
Example
dagger -m github.com/levlaz/snippetbox@624cb70954b54d775e64feb60761df530b7e6336 call \
with-private-container --address string --username string --token env:MYSECRET
func (m *myModule) example(address string, username string, token *Secret) *Container {
return dag.
Ci().
WithPrivateContainer(address, username, token)
}
@function
def example(address: str, username: str, token: dagger.Secret) -> dagger.Container:
return (
dag.ci()
.with_private_container(address, username, token)
)
@func()
example(address: string, username: string, token: Secret): Container {
return dag
.ci()
.withPrivateContainer(address, username, token)
}