cloudflare/cloudflared
Publicmirrored from https://github.com/cloudflare/cloudflaredAvailable
cfsetup.yaml
300lines · modecode
| 1 | pinned_go: &pinned_go go=1.16.3-1 |
| 2 | pinned_go_fips: &pinned_go_fips go-fips=1.15.5-3 |
| 3 | |
| 4 | build_dir: &build_dir /cfsetup_build |
| 5 | default-flavor: buster |
| 6 | stretch: &stretch |
| 7 | build: |
| 8 | build_dir: *build_dir |
| 9 | builddeps: |
| 10 | - *pinned_go_fips |
| 11 | - build-essential |
| 12 | post-cache: |
| 13 | - export GOOS=linux |
| 14 | - export GOARCH=amd64 |
| 15 | - export FIPS=true |
| 16 | - make cloudflared |
| 17 | build-deb: |
| 18 | build_dir: *build_dir |
| 19 | builddeps: |
| 20 | - *pinned_go_fips |
| 21 | - build-essential |
| 22 | - fakeroot |
| 23 | - rubygem-fpm |
| 24 | post-cache: |
| 25 | - export GOOS=linux |
| 26 | - export GOARCH=amd64 |
| 27 | - export FIPS=true |
| 28 | - make cloudflared-deb |
| 29 | build-deb-arm64: |
| 30 | build_dir: *build_dir |
| 31 | builddeps: |
| 32 | - *pinned_go |
| 33 | - build-essential |
| 34 | - fakeroot |
| 35 | - rubygem-fpm |
| 36 | post-cache: |
| 37 | - export GOOS=linux |
| 38 | - export GOARCH=arm64 |
| 39 | - make cloudflared-deb |
| 40 | publish-deb: |
| 41 | build_dir: *build_dir |
| 42 | builddeps: |
| 43 | - *pinned_go_fips |
| 44 | - build-essential |
| 45 | - fakeroot |
| 46 | - rubygem-fpm |
| 47 | - openssh-client |
| 48 | post-cache: |
| 49 | - export GOOS=linux |
| 50 | - export GOARCH=amd64 |
| 51 | - export FIPS=true |
| 52 | - make publish-deb |
| 53 | release-linux-amd64: |
| 54 | build_dir: *build_dir |
| 55 | builddeps: |
| 56 | - *pinned_go_fips |
| 57 | - build-essential |
| 58 | post-cache: |
| 59 | - export GOOS=linux |
| 60 | - export GOARCH=amd64 |
| 61 | - export FIPS=true |
| 62 | - make release |
| 63 | github-release-linux-amd64: |
| 64 | build_dir: *build_dir |
| 65 | builddeps: |
| 66 | - *pinned_go_fips |
| 67 | - build-essential |
| 68 | - python3-setuptools |
| 69 | - python3-pip |
| 70 | pre-cache: &install_pygithub |
| 71 | - pip3 install pygithub |
| 72 | post-cache: |
| 73 | - export GOOS=linux |
| 74 | - export GOARCH=amd64 |
| 75 | - export FIPS=true |
| 76 | - make github-release |
| 77 | release-linux-armv6: |
| 78 | build_dir: *build_dir |
| 79 | builddeps: |
| 80 | - *pinned_go |
| 81 | - crossbuild-essential-armhf |
| 82 | - gcc-arm-linux-gnueabihf |
| 83 | post-cache: |
| 84 | - export GOOS=linux |
| 85 | - export GOARCH=arm |
| 86 | - export CC=arm-linux-gnueabihf-gcc |
| 87 | - make release |
| 88 | github-release-linux-armv6: |
| 89 | build_dir: *build_dir |
| 90 | builddeps: |
| 91 | - *pinned_go |
| 92 | - crossbuild-essential-armhf |
| 93 | - gcc-arm-linux-gnueabihf |
| 94 | - python3-setuptools |
| 95 | - python3-pip |
| 96 | pre-cache: *install_pygithub |
| 97 | post-cache: |
| 98 | - export GOOS=linux |
| 99 | - export GOARCH=arm |
| 100 | - export CC=arm-linux-gnueabihf-gcc |
| 101 | - make github-release |
| 102 | release-linux-386: |
| 103 | build_dir: *build_dir |
| 104 | builddeps: |
| 105 | - *pinned_go |
| 106 | - gcc-multilib |
| 107 | post-cache: |
| 108 | - export GOOS=linux |
| 109 | - export GOARCH=386 |
| 110 | - make release |
| 111 | github-release-linux-386: |
| 112 | build_dir: *build_dir |
| 113 | builddeps: |
| 114 | - *pinned_go |
| 115 | - gcc-multilib |
| 116 | - python3-setuptools |
| 117 | - python3-pip |
| 118 | pre-cache: *install_pygithub |
| 119 | post-cache: |
| 120 | - export GOOS=linux |
| 121 | - export GOARCH=386 |
| 122 | - make github-release |
| 123 | release-windows-amd64: |
| 124 | build_dir: *build_dir |
| 125 | builddeps: |
| 126 | - *pinned_go |
| 127 | - gcc-mingw-w64 |
| 128 | post-cache: |
| 129 | - export GOOS=windows |
| 130 | - export GOARCH=amd64 |
| 131 | - export CC=x86_64-w64-mingw32-gcc |
| 132 | - make release |
| 133 | github-release-windows-amd64: |
| 134 | build_dir: *build_dir |
| 135 | builddeps: |
| 136 | - *pinned_go |
| 137 | - gcc-mingw-w64 |
| 138 | - python3-setuptools |
| 139 | - python3-pip |
| 140 | pre-cache: *install_pygithub |
| 141 | post-cache: |
| 142 | - export GOOS=windows |
| 143 | - export GOARCH=amd64 |
| 144 | - export CC=x86_64-w64-mingw32-gcc |
| 145 | - make github-release |
| 146 | release-windows-386: |
| 147 | build_dir: *build_dir |
| 148 | builddeps: |
| 149 | - *pinned_go |
| 150 | - gcc-mingw-w64 |
| 151 | post-cache: |
| 152 | - export GOOS=windows |
| 153 | - export GOARCH=386 |
| 154 | - export CC=i686-w64-mingw32-gcc-win32 |
| 155 | - make release |
| 156 | github-release-windows-386: |
| 157 | build_dir: *build_dir |
| 158 | builddeps: |
| 159 | - *pinned_go |
| 160 | - gcc-mingw-w64 |
| 161 | - python3-setuptools |
| 162 | - python3-pip |
| 163 | pre-cache: *install_pygithub |
| 164 | post-cache: |
| 165 | - export GOOS=windows |
| 166 | - export GOARCH=386 |
| 167 | - export CC=i686-w64-mingw32-gcc-win32 |
| 168 | - make github-release |
| 169 | github-release-linux-arm64: |
| 170 | build_dir: *build_dir |
| 171 | builddeps: |
| 172 | - *pinned_go |
| 173 | - crossbuild-essential-armhf |
| 174 | - g++-aarch64-linux-gnu |
| 175 | - python3-setuptools |
| 176 | - python3-pip |
| 177 | pre-cache: *install_pygithub |
| 178 | post-cache: |
| 179 | - export GOOS=linux |
| 180 | - export GOARCH=arm64 |
| 181 | - export CC=aarch64-linux-gnu-gcc |
| 182 | - make github-release |
| 183 | github-release-macos-amd64: |
| 184 | build_dir: *build_dir |
| 185 | builddeps: |
| 186 | - *pinned_go |
| 187 | - python3-setuptools |
| 188 | - python3-pip |
| 189 | pre-cache: *install_pygithub |
| 190 | post-cache: |
| 191 | - make github-mac-upload |
| 192 | test: |
| 193 | build_dir: *build_dir |
| 194 | builddeps: |
| 195 | - *pinned_go_fips |
| 196 | - build-essential |
| 197 | - gotest-to-teamcity |
| 198 | pre-cache: |
| 199 | - go get golang.org/x/tools/cmd/goimports |
| 200 | - go get github.com/BurntSushi/go-sumtype |
| 201 | post-cache: |
| 202 | - export GOOS=linux |
| 203 | - export GOARCH=amd64 |
| 204 | - export FIPS=true |
| 205 | - export PATH="$HOME/go/bin:$PATH" |
| 206 | - ./fmt-check.sh |
| 207 | - make test | gotest-to-teamcity |
| 208 | component-test: |
| 209 | build_dir: *build_dir |
| 210 | builddeps: |
| 211 | - *pinned_go_fips |
| 212 | - python3.7 |
| 213 | - python3-pip |
| 214 | - python3-setuptools |
| 215 | # procps installs the ps command which is needed in test_sysv_service because the init script |
| 216 | # uses ps pid to determine if the agent is running |
| 217 | - procps |
| 218 | pre-cache-copy-paths: |
| 219 | - component-tests/requirements.txt |
| 220 | pre-cache: |
| 221 | - sudo pip3 install --upgrade -r component-tests/requirements.txt |
| 222 | post-cache: |
| 223 | # Creates and routes a Named Tunnel for this build. Also constructs config file from env vars. |
| 224 | - python3 component-tests/setup.py --type create |
| 225 | - pytest component-tests |
| 226 | # The Named Tunnel is deleted and its route unprovisioned here. |
| 227 | - python3 component-tests/setup.py --type cleanup |
| 228 | update-homebrew: |
| 229 | builddeps: |
| 230 | - openssh-client |
| 231 | - s3cmd |
| 232 | post-cache: |
| 233 | - .teamcity/update-homebrew.sh |
| 234 | github-message-release: |
| 235 | build_dir: *build_dir |
| 236 | builddeps: |
| 237 | - *pinned_go |
| 238 | - python3-setuptools |
| 239 | - python3-pip |
| 240 | pre-cache: *install_pygithub |
| 241 | post-cache: |
| 242 | - make github-message |
| 243 | build-junos: |
| 244 | build_dir: *build_dir |
| 245 | builddeps: |
| 246 | - *pinned_go |
| 247 | - build-essential |
| 248 | - python3 |
| 249 | - genisoimage |
| 250 | - jetez |
| 251 | pre-cache: |
| 252 | - ln -s /usr/bin/genisoimage /usr/bin/mkisofs |
| 253 | post-cache: |
| 254 | - export GOOS=freebsd |
| 255 | - export GOARCH=amd64 |
| 256 | - make cloudflared-junos |
| 257 | publish-junos: |
| 258 | build_dir: *build_dir |
| 259 | builddeps: |
| 260 | - *pinned_go |
| 261 | - build-essential |
| 262 | - python3 |
| 263 | - genisoimage |
| 264 | - jetez |
| 265 | - s4cmd |
| 266 | pre-cache: |
| 267 | - ln -s /usr/bin/genisoimage /usr/bin/mkisofs |
| 268 | post-cache: |
| 269 | - export GOOS=freebsd |
| 270 | - export GOARCH=amd64 |
| 271 | - make publish-cloudflared-junos |
| 272 | |
| 273 | buster: *stretch |
| 274 | bullseye: *stretch |
| 275 | centos-7: |
| 276 | publish-rpm: |
| 277 | build_dir: *build_dir |
| 278 | builddeps: &el7_builddeps |
| 279 | - https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm |
| 280 | pre-cache: |
| 281 | - yum install -y fakeroot |
| 282 | - wget https://golang.org/dl/go1.16.3.linux-amd64.tar.gz -P /tmp/ |
| 283 | - tar -C /usr/local -xzf /tmp/go1.16.3.linux-amd64.tar.gz |
| 284 | post-cache: |
| 285 | - export PATH=$PATH:/usr/local/go/bin |
| 286 | - export GOOS=linux |
| 287 | - export GOARCH=amd64 |
| 288 | - make publish-rpm |
| 289 | build-rpm: |
| 290 | build_dir: *build_dir |
| 291 | builddeps: *el7_builddeps |
| 292 | pre-cache: |
| 293 | - yum install -y fakeroot |
| 294 | - wget https://golang.org/dl/go1.16.3.linux-amd64.tar.gz -P /tmp/ |
| 295 | - tar -C /usr/local -xzf /tmp/go1.16.3.linux-amd64.tar.gz |
| 296 | post-cache: |
| 297 | - export PATH=$PATH:/usr/local/go/bin |
| 298 | - export GOOS=linux |
| 299 | - export GOARCH=amd64 |
| 300 | - make cloudflared-rpm |
| 301 | |