ecload/.gitlab-ci.yml

24 lines
460 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:27:41 +00:00
#- curl -H "$TOKEN_HEADER" https://$CI_API_V4_URL/$CI_PROJECT_ID/releases
- echo $TOKEN_HEADER
- echo $CI_API_V4_URL
- echo $CI_PROJECT_URL
2019-06-11 05:13:50 +00:00
artifacts:
paths:
- dist/*.tar.gz
2019-06-11 05:11:41 +00:00
only:
- tags