cloudflare/cloudflared
Publicmirrored from https://github.com/cloudflare/cloudflaredAvailable
.ci/release.gitlab-ci.yml
39lines · modecode
| 1 | include: |
| 2 | - local: .ci/commons.gitlab-ci.yml |
| 3 | |
| 4 | ########################################### |
| 5 | ### Push Cloudflared Binaries to Github ### |
| 6 | ########################################### |
| 7 | release-cloudflared-to-github: |
| 8 | stage: release |
| 9 | image: $BUILD_IMAGE |
| 10 | extends: .check-tag |
| 11 | needs: |
| 12 | - ci-image-get-image-ref |
| 13 | - package-windows |
| 14 | - build-and-sign-cloudflared-macos |
| 15 | rules: |
| 16 | - !reference [.default-rules, run-on-master] |
| 17 | cache: |
| 18 | paths: |
| 19 | - .cache/pip |
| 20 | variables: |
| 21 | PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" |
| 22 | KV_NAMESPACE: 380e19aa04314648949b6ad841417ebe |
| 23 | KV_ACCOUNT: 5ab4e9dfbd435d24068829fda0077963 |
| 24 | secrets: |
| 25 | KV_API_TOKEN: |
| 26 | vault: gitlab/cloudflare/tun/cloudflared/_dev/cfd_kv_api_token/data@kv |
| 27 | file: false |
| 28 | API_KEY: |
| 29 | vault: gitlab/cloudflare/tun/cloudflared/_dev/cfd_github_api_key/data@kv |
| 30 | file: false |
| 31 | script: |
| 32 | - python3 --version ; pip --version # For debugging |
| 33 | - python3 -m venv venv |
| 34 | - source venv/bin/activate |
| 35 | - pip install pynacl==1.4.0 pygithub==1.55 |
| 36 | - echo $VERSION |
| 37 | - echo $TAG_EXISTS |
| 38 | - echo "Running release because tag exists." |
| 39 | - make gitlab-release |
| 40 | |