Move some lines to other position in the file

It's common to define variables/constants in the top of a file, so do
that here too.

Move 'stage' field directly under step name as it's quite significant
and seen in other salsa-ci.yml as well.

Move 'image' line after 'stage' line as it's quite important as well.
This commit is contained in:
Diederik de Haas 2022-11-03 21:54:38 +01:00
parent b7df4bf849
commit 5e42c6360a
No known key found for this signature in database
GPG Key ID: D76E5BCE787EDB6E
1 changed files with 5 additions and 5 deletions

10
debian/salsa-ci.yml vendored
View File

@ -1,7 +1,12 @@
stages:
- build
variables:
DEBIAN_FRONTEND: "noninteractive"
build:
stage: build
image: debian:sid
retry:
max: 2
when: always
@ -9,8 +14,6 @@ build:
- branches
- master # I suppose that we can work directly on master
- merge_request
stage: build
image: debian:sid
dependencies: []
script:
- apt-get update && apt-get install -y vmdb2 dosfstools qemu-utils qemu-user-static debootstrap binfmt-support time kpartx bmap-tools python3 fakemachine make
@ -21,6 +24,3 @@ build:
paths:
- build
variables:
DEBIAN_FRONTEND: "noninteractive"