From 93cf5fc0d3fd46dd96be24fe821a733fbc8a0f7c Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Wed, 20 Feb 2019 11:58:41 +0100 Subject: [PATCH] drone 1 format --- .drone.yml | 73 +++++++++++++++++++++++++++--------------------------- 1 file changed, 37 insertions(+), 36 deletions(-) diff --git a/.drone.yml b/.drone.yml index 83be725..acfcbbf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,60 +1,59 @@ -workspace: - base: /go - path: src/gitbase.de/apairon/mark2web +kind: pipeline +name: default - -pipeline: - build_mark2web_linux: +steps: + - name: build for linux image: golang:latest environment: - - CGO_ENABLED=0 - - GOOS=linux - - GOARCH=amd64 + CGO_ENABLED: 0 + GOOS: linux + GOARCH: amd64 commands: + - git submodule update --init --recursive - git fetch --tags - ./build.sh - test_example: + - name: test with example content image: alpine commands: - ./dist/mark2web-`cat VERSION`-linux-amd64 -version - ./dist/mark2web-`cat VERSION`-linux-amd64 -in example -out example_out -create -logLevel debug - build_mark2web_freebsd: + - name: build for freebsd image: golang:latest environment: - - CGO_ENABLED=0 - - GOOS=freebsd - - GOARCH=amd64 + CGO_ENABLED: 0 + GOOS: freebsd + GOARCH: amd64 commands: - ./build.sh when: event: [ tag ] - build_mark2web_darwin: + - name: build for macos image: golang:latest environment: - - CGO_ENABLED=0 - - GOOS=darwin - - GOARCH=amd64 + CGO_ENABLED: 0 + GOOS: darwin + GOARCH: amd64 commands: - ./build.sh when: event: [ tag ] - build_mark2web_windows: + - name: build for windows image: golang:latest environment: - - CGO_ENABLED=0 - - GOOS=windows - - GOARCH=amd64 - - FILEEXT=.exe + CGO_ENABLED: 0 + GOOS: windows + GOARCH: amd64 + FILEEXT: .exe commands: - ./build.sh when: event: [ tag ] - build_docker: + - name: build docker image image: docker commands: - cp dist/mark2web-`cat VERSION`-linux-amd64 mark2web @@ -65,7 +64,7 @@ pipeline: branch: [ master ] event: [ push ] - deploy_website: + - name: deploy website image: apairon/mark2web:latest commands: - /mark2web -version @@ -74,7 +73,7 @@ pipeline: branch: [ master ] event: [ push ] - prepare_release: + - name: prepare release image: apairon/mark2web:latest commands: - gzip dist/* @@ -82,16 +81,18 @@ pipeline: when: event: [ tag ] - gitea_relase: + - name: gitea release image: plugins/gitea-release - secrets: [ plugin_api_key ] - base_url: https://gitbase.de - files: - - dist/* - title: VERSION - note: RELEASE - checksum: - - md5 - - sha256 + settings: + api_key: + from_secret: gitea_token + base_url: https://gitbase.de + files: + - dist/* + title: VERSION + note: RELEASE + checksum: + - md5 + - sha256 when: event: [ tag ]