From dd4e6f6fccd32f9b838ec627a3b9eb2702fce55b Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 6 May 2023 00:38:25 +0200 Subject: [PATCH] feat: add nightly option --- actions/build.go | 2 ++ templates/shuttle-template.yaml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/actions/build.go b/actions/build.go index b3a616b..c748d8f 100644 --- a/actions/build.go +++ b/actions/build.go @@ -98,6 +98,8 @@ func Build(ctx context.Context) error { WithEnvVariable( "PATH", fmt.Sprintf("/usr/local/cargo/bin:%s", path), ). + WithExec([]string{"rustup", "toolchain", "install", "nightly"}). + WithExec([]string{"rustup", "default", "nightly"}). WithWorkdir("/app"). WithFile("/usr/local/bin/shuttle", shuttle). WithExec([]string{"shuttle", "version"}) diff --git a/templates/shuttle-template.yaml b/templates/shuttle-template.yaml index fbde4f8..bd890c6 100644 --- a/templates/shuttle-template.yaml +++ b/templates/shuttle-template.yaml @@ -19,7 +19,7 @@ steps: - sleep 10 - echo "$${DOCKER_PASSWORD}" | docker login --password-stdin --username="$${DOCKER_USERNAME}" - name: "build" - image: docker.io/kasperhermansen/shuttle-drone:1683322851258 + image: docker.io/kasperhermansen/shuttle-drone:1683325750924 volumes: - name: dockersock path: /var/run