feat: update drone
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Kasper Juul Hermansen 2023-04-07 21:00:57 +02:00
parent e23230ba48
commit 14ea48b0e8
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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