From dc9688d53d5ebe814e910ce045c751017ddb2bbf Mon Sep 17 00:00:00 2001 From: Marvin Steadfast Date: Wed, 16 Jun 2021 14:37:07 +0200 Subject: [PATCH] ci: adds create-torrent step --- .drone.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 8957983..3ae4fe9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,6 +11,7 @@ steps: - name: lint image: golangci/golangci-lint:v1.39.0 commands: + - make install-tools - make lint depends_on: - tags @@ -48,7 +49,7 @@ steps: - name: dockersock path: /var/run commands: - - (cd /tmp; go install github.com/goreleaser/goreleaser@v0.169.0) + - (cd /tmp; go install -v github.com/goreleaser/goreleaser@v0.169.0) - make test-integration depends_on: - test @@ -56,6 +57,19 @@ steps: - qemu-alpine - create-image + - name: create-torrent + image: golang:1.16-alpine + volumes: + - name: swap + path: /SWAP + commands: + - (cd /tmp; go get -v github.com/cenkalti/rain@v1.6.4) + - cd /SWAP + - zip 2021-05-07-raspios-buster-armhf-lite.zip 2021-05-07-raspios-buster-armhf-lite.img + - rain torrent create -o schnutibox.torrent -f 2021-05-07-raspios-buster-armhf-lite.zip + depends_on: + - prepare-image + - name: build image: goreleaser/goreleaser:v0.169.0 commands: