You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
640 B
YAML
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
|
|
|
|
|