ecload/.gitlab-ci.yml

21 lines
361 B
YAML
Raw Normal View History

2019-06-11 05:15:13 +00:00
image: golang:latest
2019-06-11 09:19:05 +00:00
variables:
TOKEN_HEADER: "PRIVATE-TOKEN: $CI_BUILD_TOKEN"
2019-06-11 09:06:04 +00:00
build:
2019-06-11 05:13:50 +00:00
script:
2019-06-11 05:11:41 +00:00
- make
dependencies: []
2019-06-11 05:19:55 +00:00
except:
- tags
2019-06-11 05:11:41 +00:00
2019-06-11 09:06:04 +00:00
release:
2019-06-11 05:13:50 +00:00
script:
2019-06-11 05:11:41 +00:00
- make
2019-06-11 09:34:44 +00:00
- curl -H "$TOKEN_HEADER" $CI_API_V4_URL/$CI_PROJECT_ID/releases
2019-06-11 05:13:50 +00:00
artifacts:
paths:
- dist/*.tar.gz
2019-06-11 05:11:41 +00:00
only:
- tags