setting before_script per task

This commit is contained in:
jalr 2018-02-13 00:28:29 +01:00
parent 946a1fda55
commit 6676de0a52

View file

@ -8,9 +8,6 @@ stages:
- rootfs
- torrent
before_script:
- apk add --no-cache ansible mktorrent
prepare:
variables:
ZIPFILE: packer_${PACKER_VERSION}_linux_amd64.zip
@ -30,6 +27,8 @@ packer:
stage: rootfs
services:
- docker:dind
before_script:
- apk add --no-cache ansible
script:
- bin/packer build packer.json
- gzip -k -f rootfs.tar
@ -52,6 +51,8 @@ mktorrent:
variables:
ANNOUNCE: udp://tracker.sbruder.de:6969/announce
WEBSEED: http://10.2.2.1:8081/rootfs.tar.gz
before_script:
- apk add --no-cache mktorrent
script:
- mktorrent -a "$ANNOUNCE" -o rootfs.torrent -l 22 -w "$WEBSEED" rootfs.tar.gz
artifacts: