cadmium/.gitlab-ci.yml

28 lines
640 B
YAML

image: golang:1.10
build:
stage: build
variables:
CADDY_TAG: $CI_COMMIT_TAG
script:
- apt-get -yy update && apt-get -yy install patch
- go get github.com/mitchellh/gox
- scripts/download "$(dirname $CI_PROJECT_URL)/caddy/-/archive/${CADDY_TAG}/caddy-${CADDY_TAG}.tar.gz"
- mkdir -p "$GOPATH/src/github.com/mholt"
- ln -s "$(pwd)/source" "$GOPATH/src/github.com/mholt/caddy"
- scripts/build ${CADDY_TAG}
- ./bin/cadmium.linux_amd64 -plugins | tee plugins.txt
artifacts:
paths:
- bin
- gopath
- plugins.txt
only:
- tags
- api
- pipelines
- triggers
- web