24 lines
460 B
YAML
24 lines
460 B
YAML
image: golang:latest
|
|
variables:
|
|
TOKEN_HEADER: "PRIVATE-TOKEN: $CI_BUILD_TOKEN"
|
|
|
|
build:
|
|
script:
|
|
- make
|
|
dependencies: []
|
|
except:
|
|
- tags
|
|
|
|
release:
|
|
script:
|
|
- make
|
|
#- 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
|
|
artifacts:
|
|
paths:
|
|
- dist/*.tar.gz
|
|
only:
|
|
- tags
|