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