Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
This commit is contained in:
parent
cc34bf6392
commit
528a0ea97e
@ -1,3 +1,5 @@
|
||||
local cross_image = 'img.kie.rs/jjkiers/rust-dind-cross:1.65-slim';
|
||||
|
||||
local archs = [
|
||||
{ target: 'aarch64-unknown-linux-gnu', short: 'arm64-gnu' },
|
||||
{ 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() = [
|
||||
{
|
||||
name: getStepName(arch),
|
||||
image: 'img.kie.rs/jjkiers/rust-dind-cross:1.62-slim',
|
||||
image: cross_image,
|
||||
volumes: [
|
||||
{
|
||||
name: 'dockersock',
|
||||
path: '/var/run',
|
||||
},
|
||||
{
|
||||
name: 'rustup',
|
||||
path: '/usr/local/rustup',
|
||||
},
|
||||
],
|
||||
commands: [
|
||||
'echo Hello World from Jsonnet on ' + arch.target + '!',
|
||||
@ -48,12 +46,12 @@ local add_build_steps() = [
|
||||
steps:
|
||||
[{
|
||||
name: 'Wait for Docker',
|
||||
image: 'img.kie.rs/jjkiers/rust-dind-cross:1.62-slim',
|
||||
image: cross_image,
|
||||
commands: [
|
||||
'mkdir artifacts',
|
||||
'while ! docker image ls; do sleep 1; done',
|
||||
'docker info',
|
||||
'docker pull hello-world:latest',
|
||||
'mkdir artifacts',
|
||||
],
|
||||
volumes: [{
|
||||
name: 'dockersock',
|
||||
@ -64,7 +62,7 @@ local add_build_steps() = [
|
||||
[
|
||||
{
|
||||
name: 'Show built artifacts',
|
||||
image: 'img.kie.rs/jjkiers/rust-dind-cross:1.62-slim',
|
||||
image: cross_image,
|
||||
commands: [
|
||||
'ls -lah artifacts',
|
||||
],
|
||||
@ -115,12 +113,6 @@ local add_build_steps() = [
|
||||
path: '/srv/drone/docker-dind-rust',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'rustup',
|
||||
host: {
|
||||
path: '/srv/drone/rustup',
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
image_pull_secrets: ['docker_private_repo'],
|
||||
|
Loading…
Reference in New Issue
Block a user