workspace: base: /go path: src/gitbase.de/apairon/mark2web clone: git: image: plugins/git:next depth: 50 tags: true recursive: true pipeline: build_mark2web_linux: image: golang:latest environment: - CGO_ENABLED=0 - GOOS=linux - GOARCH=amd64 commands: - ./build.sh test_example: 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: image: golang:latest environment: - CGO_ENABLED=0 - GOOS=freebsd - GOARCH=amd64 commands: - ./build.sh when: branch: [ master ] event: [ push, tag ] build_mark2web_darwin: image: golang:latest environment: - CGO_ENABLED=0 - GOOS=darwin - GOARCH=amd64 commands: - ./build.sh when: branch: [ master ] event: [ push] build_mark2web_windows: image: golang:latest environment: - CGO_ENABLED=0 - GOOS=windows - GOARCH=amd64 - FILEEXT=.exe commands: - ./build.sh when: branch: [ master ] event: [ push, tag ] build_docker: image: docker commands: - cp dist/mark2web-`cat VERSION`-linux-amd64 mark2web - docker build -t apairon/mark2web . volumes: - /var/run/docker.sock:/var/run/docker.sock when: branch: [ master ] event: [ push, tag ] deploy_website: image: apairon/mark2web:latest commands: - /mark2web -version - /mark2web -in website -out html -create -logLevel debug when: branch: [ master ] event: [ push, tag ] prepare_release: image: apairon/mark2web:latest commands: - gzip dist/* - ls -la dist/ when: event: [ tag ] gitea_relase: image: plugins/gitea-release secrets: [ plugin_api_key ] base_url: https://gitbase.de files: - dist/* title: VERSION note: RELEASE checksum: - md5 - sha256 when: event: [ tag ]