Add wait step as a separate one.
Some checks reported errors
continuous-integration/drone/push Build was killed

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
This commit is contained in:
Jacob Kiers 2022-08-20 20:24:12 +02:00
parent 6686a67c71
commit df44867b9d

View File

@ -17,7 +17,6 @@ local buildForArch(arch) = {
}], }],
commands: [ commands: [
'echo Hello World from Jsonnet on ' + arch + '!', 'echo Hello World from Jsonnet on ' + arch + '!',
'while ! docker image ls; do sleep 1; done',
'cross build --release --target ' + arch, 'cross build --release --target ' + arch,
'rm -rf target/' + arch + '/release/{build,deps,examples,incremental}', 'rm -rf target/' + arch + '/release/{build,deps,examples,incremental}',
'ls -lah target/' + arch + '/release', 'ls -lah target/' + arch + '/release',
@ -40,7 +39,12 @@ local check_steps() = [
arch: 'amd64', arch: 'amd64',
}, },
steps: steps:
check_steps() + [{
name: 'wait-for-docker',
image: 'rust:1.62',
commands: ['while ! docker image ls; do sleep 1; done'],
}]
+ check_steps() +
[ [
{ {
name: 'build', name: 'build',