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