This commit is contained in:
parent
e23230ba48
commit
14ea48b0e8
@ -3,7 +3,7 @@ kind: pipeline
|
||||
name: "shuttle-drone-templates"
|
||||
steps:
|
||||
- name: "build"
|
||||
image: docker.io/kasperhermansen/shuttle-drone:1680893418457
|
||||
image: docker.io/kasperhermansen/shuttle-drone:1680894029336
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run
|
||||
@ -15,6 +15,7 @@ steps:
|
||||
from_secret: docker_username
|
||||
DOCKER_HOST: docker.io
|
||||
commands:
|
||||
- ls /var/run
|
||||
- set -eu
|
||||
- sleep 10
|
||||
- echo "$DOCKER_PASSWORD" | docker login --password-stdin --username="$DOCKER_USERNAME" docker.io
|
||||
|
@ -70,8 +70,7 @@ func Build(ctx context.Context) error {
|
||||
Platform: platform,
|
||||
}).
|
||||
From("docker:cli").
|
||||
Directory("/usr/local/bin").
|
||||
File("docker")
|
||||
File("/usr/local/bin/docker")
|
||||
|
||||
image := client.
|
||||
Container(dagger.ContainerOpts{
|
||||
@ -86,7 +85,7 @@ func Build(ctx context.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
image = image.WithFile("/usr/local/bin/docker", docker)
|
||||
image = image.WithFile("/usr/bin/docker", docker)
|
||||
if _, err := image.ExitCode(ctx); err != nil {
|
||||
log.Printf("%v", err)
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user