This commit is contained in:
parent
b2e9b54245
commit
4e10b5c543
@ -38,7 +38,16 @@ func (p *Pipeline) WithRustBin(opts *RustBinOpts) *Pipeline {
|
|||||||
byg.Step{
|
byg.Step{
|
||||||
Execute: func(_ byg.Context) error {
|
Execute: func(_ byg.Context) error {
|
||||||
var err error
|
var err error
|
||||||
c := container.LoadImage(client, "harbor.server.kjuulh.io/docker-proxy/library/rust")
|
c := container.LoadImage(client, "harbor.server.kjuulh.io/docker-proxy/library/rust:buster")
|
||||||
|
c = c.Exec(dagger.ContainerExecOpts{
|
||||||
|
Args: []string{
|
||||||
|
"apt install musl-tools",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
if _, err := c.ExitCode(ctx); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
c, err = container.MountCurrent(ctx, client, c, "/src")
|
c, err = container.MountCurrent(ctx, client, c, "/src")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -4,7 +4,7 @@ name: "drone-dagger-test"
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "build"
|
- name: "build"
|
||||||
image: harbor.server.kjuulh.io/kjuulh/bust:1667691698304
|
image: harbor.server.kjuulh.io/kjuulh/bust:1667692696139
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run
|
path: /var/run
|
||||||
|
Loading…
Reference in New Issue
Block a user