From 14ea48b0e8542a9cd71ad3e08c9a039703734ecd Mon Sep 17 00:00:00 2001 From: kjuulh Date: Fri, 7 Apr 2023 21:00:57 +0200 Subject: [PATCH] feat: update drone --- .drone.yml | 3 ++- shuttletask/build.go | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 790ee45..b5e588c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/shuttletask/build.go b/shuttletask/build.go index e673b96..c6aacf0 100644 --- a/shuttletask/build.go +++ b/shuttletask/build.go @@ -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