Remove concourse configuration

This commit is contained in:
Robert Jacob 2020-06-21 15:00:15 +02:00
parent 9573c83179
commit 99cf36faed
3 changed files with 0 additions and 67 deletions

View File

@ -1,17 +0,0 @@
#!/usr/bin/env bash
set -e -u -x
readonly NAME=netatmo-exporter
readonly PACKAGE=github.com/xperimental/netatmo-exporter
readonly BUILDS=(linux/amd64 linux/arm darwin/amd64 windows/amd64)
mkdir -p gopath/src/github.com/xperimental/
ln -s "$PWD/source" "gopath/src/${PACKAGE}"
export GOPATH=$PWD/gopath
for build in "${BUILDS[@]}"; do
echo "Build: $build"
IFS="/" read -a buildinfo <<< "$build"
GOOS=${buildinfo[0]} GOARCH=${buildinfo[1]} go build -v -ldflags="-s -w" -o "binaries/${NAME}_${buildinfo[0]}_${buildinfo[1]}" "${PACKAGE}"
done

View File

@ -1,12 +0,0 @@
platform: linux
image_resource:
type: docker-image
source:
repository: golang
tag: 1.11.0
inputs:
- name: source
outputs:
- name: binaries
run:
path: source/_ci/build.sh

View File

@ -1,38 +0,0 @@
resource_types:
- name: github-status
type: docker-image
source:
repository: dpb587/github-status-resource
tag: master
resources:
- name: netatmo-exporter
type: git
source:
uri: git://github.com/xperimental/netatmo-exporter.git
branch: master
- name: status
type: github-status
source:
repository: xperimental/netatmo-exporter
access_token: ((repo_github_token))
jobs:
- name: build
plan:
- get: source
resource: netatmo-exporter
trigger: true
- put: status
params:
state: pending
commit: source
- task: build
file: source/_ci/build.yml
on_failure:
put: status
params:
state: failure
commit: source
- put: status
params:
state: success
commit: source