mirror of
https://github.com/cloudflare/cloudflared.git
synced 2026-01-12 06:53:30 +00:00
## Summary This commit migrates the cloduflared ci pipelines, that built, tested and component tested the linux binaries to gitlab ci. The only thing that is remaining to move from teamcity to gitlab are now the release pipelines that run on master. Relates to TUN-9800
31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
# Builds a custom CI Image when necessary
|
|
|
|
include:
|
|
#####################################################
|
|
############## Build and Push CI Image ##############
|
|
#####################################################
|
|
- component: $CI_SERVER_FQDN/cloudflare/ci/docker-image/build-push-image@~latest
|
|
inputs:
|
|
stage: pre-build
|
|
jobPrefix: ci-image
|
|
runOnChangesTo: [".ci/image/**"]
|
|
runOnMR: true
|
|
runOnBranches: '^master$'
|
|
commentImageRefs: false
|
|
runner: vm-linux-x86-4cpu-8gb
|
|
EXTRA_DIB_ARGS: "--manifest=.ci/image/.docker-images"
|
|
|
|
#####################################################
|
|
## Resolve the image reference for downstream jobs ##
|
|
#####################################################
|
|
- component: $CI_SERVER_FQDN/cloudflare/ci/docker-image/get-image-ref@~latest
|
|
inputs:
|
|
stage: pre-build
|
|
jobPrefix: ci-image
|
|
runOnMR: true
|
|
runOnBranches: '^master$'
|
|
IMAGE_PATH: "$REGISTRY_HOST/stash/tun/cloudflared/ci-image/master"
|
|
VARIABLE_NAME: BUILD_IMAGE
|
|
needs:
|
|
- job: ci-image-build-push-image
|
|
optional: true
|