setting before_script per task
This commit is contained in:
parent
946a1fda55
commit
6676de0a52
1 changed files with 4 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue