Use newer rust image
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
This commit is contained in:
Jacob Kiers 2022-12-16 13:41:13 +01:00
parent cc34bf6392
commit 528a0ea97e

View File

@ -1,3 +1,5 @@
local cross_image = 'img.kie.rs/jjkiers/rust-dind-cross:1.65-slim';
local archs = [ local archs = [
{ target: 'aarch64-unknown-linux-gnu', short: 'arm64-gnu' }, { target: 'aarch64-unknown-linux-gnu', short: 'arm64-gnu' },
{ target: 'aarch64-unknown-linux-musl', short: 'arm64-musl' }, { target: 'aarch64-unknown-linux-musl', short: 'arm64-musl' },
@ -13,16 +15,12 @@ local getExeName(arch) = if std.startsWith(arch.short, 'windows') then '.exe' el
local add_build_steps() = [ local add_build_steps() = [
{ {
name: getStepName(arch), name: getStepName(arch),
image: 'img.kie.rs/jjkiers/rust-dind-cross:1.62-slim', image: cross_image,
volumes: [ volumes: [
{ {
name: 'dockersock', name: 'dockersock',
path: '/var/run', path: '/var/run',
}, },
{
name: 'rustup',
path: '/usr/local/rustup',
},
], ],
commands: [ commands: [
'echo Hello World from Jsonnet on ' + arch.target + '!', 'echo Hello World from Jsonnet on ' + arch.target + '!',
@ -48,12 +46,12 @@ local add_build_steps() = [
steps: steps:
[{ [{
name: 'Wait for Docker', name: 'Wait for Docker',
image: 'img.kie.rs/jjkiers/rust-dind-cross:1.62-slim', image: cross_image,
commands: [ commands: [
'mkdir artifacts',
'while ! docker image ls; do sleep 1; done', 'while ! docker image ls; do sleep 1; done',
'docker info', 'docker info',
'docker pull hello-world:latest', 'docker pull hello-world:latest',
'mkdir artifacts',
], ],
volumes: [{ volumes: [{
name: 'dockersock', name: 'dockersock',
@ -64,7 +62,7 @@ local add_build_steps() = [
[ [
{ {
name: 'Show built artifacts', name: 'Show built artifacts',
image: 'img.kie.rs/jjkiers/rust-dind-cross:1.62-slim', image: cross_image,
commands: [ commands: [
'ls -lah artifacts', 'ls -lah artifacts',
], ],
@ -115,12 +113,6 @@ local add_build_steps() = [
path: '/srv/drone/docker-dind-rust', path: '/srv/drone/docker-dind-rust',
}, },
}, },
{
name: 'rustup',
host: {
path: '/srv/drone/rustup',
},
},
], ],
image_pull_secrets: ['docker_private_repo'], image_pull_secrets: ['docker_private_repo'],