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:
parent
b7df4bf849
commit
5e42c6360a
|
@ -1,7 +1,12 @@
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
|
variables:
|
||||||
|
DEBIAN_FRONTEND: "noninteractive"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
stage: build
|
||||||
|
image: debian:sid
|
||||||
retry:
|
retry:
|
||||||
max: 2
|
max: 2
|
||||||
when: always
|
when: always
|
||||||
|
@ -9,8 +14,6 @@ build:
|
||||||
- branches
|
- branches
|
||||||
- master # I suppose that we can work directly on master
|
- master # I suppose that we can work directly on master
|
||||||
- merge_request
|
- merge_request
|
||||||
stage: build
|
|
||||||
image: debian:sid
|
|
||||||
dependencies: []
|
dependencies: []
|
||||||
script:
|
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
|
- 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:
|
paths:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
variables:
|
|
||||||
DEBIAN_FRONTEND: "noninteractive"
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue