cloudflare/cloudflared
Publicmirrored from https://github.com/cloudflare/cloudflaredAvailable
cfsetup.yaml
241lines · modecode
| 1 | pinned_go: &pinned_go go=1.12.9-1 |
| 2 | build_dir: &build_dir /cfsetup_build |
| 3 | default-flavor: stretch |
| 4 | stretch: &stretch |
| 5 | build: |
| 6 | build_dir: *build_dir |
| 7 | builddeps: |
| 8 | - *pinned_go |
| 9 | - build-essential |
| 10 | post-cache: |
| 11 | - export GOOS=linux |
| 12 | - export GOARCH=amd64 |
| 13 | - make cloudflared |
| 14 | build-deb: |
| 15 | build_dir: *build_dir |
| 16 | builddeps: |
| 17 | - *pinned_go |
| 18 | - build-essential |
| 19 | - fakeroot |
| 20 | - rubygem-fpm |
| 21 | post-cache: |
| 22 | - export GOOS=linux |
| 23 | - export GOARCH=amd64 |
| 24 | - make cloudflared-deb |
| 25 | build-deb-arm64: |
| 26 | build_dir: *build_dir |
| 27 | builddeps: |
| 28 | - *pinned_go |
| 29 | - build-essential |
| 30 | - fakeroot |
| 31 | - rubygem-fpm |
| 32 | post-cache: |
| 33 | - export GOOS=linux |
| 34 | - export GOARCH=arm64 |
| 35 | - make cloudflared-deb |
| 36 | publish-deb: |
| 37 | build_dir: *build_dir |
| 38 | builddeps: |
| 39 | - *pinned_go |
| 40 | - build-essential |
| 41 | - fakeroot |
| 42 | - rubygem-fpm |
| 43 | - openssh-client |
| 44 | post-cache: |
| 45 | - export GOOS=linux |
| 46 | - export GOARCH=amd64 |
| 47 | - make publish-deb |
| 48 | release-linux-amd64: |
| 49 | build_dir: *build_dir |
| 50 | builddeps: |
| 51 | - *pinned_go |
| 52 | - build-essential |
| 53 | post-cache: |
| 54 | - export GOOS=linux |
| 55 | - export GOARCH=amd64 |
| 56 | - make release |
| 57 | github-release-linux-amd64: |
| 58 | build_dir: *build_dir |
| 59 | builddeps: |
| 60 | - *pinned_go |
| 61 | - build-essential |
| 62 | - python3-setuptools |
| 63 | - python3-pip |
| 64 | post-cache: |
| 65 | - pip3 install pygithub |
| 66 | - export GOOS=linux |
| 67 | - export GOARCH=amd64 |
| 68 | - make github-release |
| 69 | release-linux-armv6: |
| 70 | build_dir: *build_dir |
| 71 | builddeps: |
| 72 | - *pinned_go |
| 73 | - crossbuild-essential-armhf |
| 74 | - gcc-arm-linux-gnueabihf |
| 75 | post-cache: |
| 76 | - export GOOS=linux |
| 77 | - export GOARCH=arm |
| 78 | - export CC=arm-linux-gnueabihf-gcc |
| 79 | - make release |
| 80 | github-release-linux-armv6: |
| 81 | build_dir: *build_dir |
| 82 | builddeps: |
| 83 | - *pinned_go |
| 84 | - crossbuild-essential-armhf |
| 85 | - gcc-arm-linux-gnueabihf |
| 86 | - python3-setuptools |
| 87 | - python3-pip |
| 88 | post-cache: |
| 89 | - pip3 install pygithub |
| 90 | - export GOOS=linux |
| 91 | - export GOARCH=arm |
| 92 | - export CC=arm-linux-gnueabihf-gcc |
| 93 | - make github-release |
| 94 | release-linux-386: |
| 95 | build_dir: *build_dir |
| 96 | builddeps: |
| 97 | - *pinned_go |
| 98 | - gcc-multilib |
| 99 | post-cache: |
| 100 | - export GOOS=linux |
| 101 | - export GOARCH=386 |
| 102 | - make release |
| 103 | github-release-linux-386: |
| 104 | build_dir: *build_dir |
| 105 | builddeps: |
| 106 | - *pinned_go |
| 107 | - gcc-multilib |
| 108 | - python3-setuptools |
| 109 | - python3-pip |
| 110 | post-cache: |
| 111 | - pip3 install pygithub |
| 112 | - export GOOS=linux |
| 113 | - export GOARCH=386 |
| 114 | - make github-release |
| 115 | release-windows-amd64: |
| 116 | build_dir: *build_dir |
| 117 | builddeps: |
| 118 | - *pinned_go |
| 119 | - gcc-mingw-w64 |
| 120 | post-cache: |
| 121 | - export GOOS=windows |
| 122 | - export GOARCH=amd64 |
| 123 | - export CC=x86_64-w64-mingw32-gcc |
| 124 | - make release |
| 125 | github-release-windows-amd64: |
| 126 | build_dir: *build_dir |
| 127 | builddeps: |
| 128 | - *pinned_go |
| 129 | - gcc-mingw-w64 |
| 130 | - python3-setuptools |
| 131 | - python3-pip |
| 132 | post-cache: |
| 133 | - pip3 install pygithub |
| 134 | - export GOOS=windows |
| 135 | - export GOARCH=amd64 |
| 136 | - export CC=x86_64-w64-mingw32-gcc |
| 137 | - make github-release |
| 138 | release-windows-386: |
| 139 | build_dir: *build_dir |
| 140 | builddeps: |
| 141 | - *pinned_go |
| 142 | - gcc-mingw-w64 |
| 143 | post-cache: |
| 144 | - export GOOS=windows |
| 145 | - export GOARCH=386 |
| 146 | - export CC=i686-w64-mingw32-gcc-win32 |
| 147 | - make release |
| 148 | github-release-windows-386: |
| 149 | build_dir: *build_dir |
| 150 | builddeps: |
| 151 | - *pinned_go |
| 152 | - gcc-mingw-w64 |
| 153 | - python3-setuptools |
| 154 | - python3-pip |
| 155 | post-cache: |
| 156 | - pip3 install pygithub |
| 157 | - export GOOS=windows |
| 158 | - export GOARCH=386 |
| 159 | - export CC=i686-w64-mingw32-gcc-win32 |
| 160 | - make github-release |
| 161 | github-release-linux-arm64: |
| 162 | build_dir: *build_dir |
| 163 | builddeps: |
| 164 | - *pinned_go |
| 165 | - crossbuild-essential-armhf |
| 166 | - g++-aarch64-linux-gnu |
| 167 | - python3-setuptools |
| 168 | - python3-pip |
| 169 | post-cache: |
| 170 | - pip3 install pygithub |
| 171 | - export GOOS=linux |
| 172 | - export GOARCH=arm64 |
| 173 | - export CC=aarch64-linux-gnu-gcc |
| 174 | - make github-release |
| 175 | test: |
| 176 | build_dir: *build_dir |
| 177 | builddeps: |
| 178 | - *pinned_go |
| 179 | - build-essential |
| 180 | post-cache: |
| 181 | - export GOOS=linux |
| 182 | - export GOARCH=amd64 |
| 183 | # cd to a non-module directory: https://github.com/golang/go/issues/24250 |
| 184 | - (cd / && go get github.com/BurntSushi/go-sumtype) |
| 185 | - export PATH="$HOME/go/bin:$PATH" |
| 186 | - make test |
| 187 | update-homebrew: |
| 188 | builddeps: |
| 189 | - openssh-client |
| 190 | - s3cmd |
| 191 | post-cache: |
| 192 | - .teamcity/update-homebrew.sh |
| 193 | github-message-release: |
| 194 | build_dir: *build_dir |
| 195 | builddeps: |
| 196 | - *pinned_go |
| 197 | - python3-setuptools |
| 198 | - python3-pip |
| 199 | post-cache: |
| 200 | - pip3 install pygithub |
| 201 | - make github-message |
| 202 | |
| 203 | jessie: *stretch |
| 204 | |
| 205 | buster: *stretch |
| 206 | |
| 207 | centos-7: |
| 208 | publish-rpm: |
| 209 | build_dir: *build_dir |
| 210 | builddeps: &el7_builddeps |
| 211 | - https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm |
| 212 | post-cache: |
| 213 | - sudo yum install -y fakeroot |
| 214 | - wget https://golang.org/dl/go1.12.9.linux-amd64.tar.gz -P /tmp/ |
| 215 | - sudo tar -C /usr/local -xzf /tmp/go1.12.9.linux-amd64.tar.gz |
| 216 | - export PATH=$PATH:/usr/local/go/bin |
| 217 | - export GOOS=linux |
| 218 | - export GOARCH=amd64 |
| 219 | - make publish-rpm |
| 220 | build-rpm: |
| 221 | build_dir: *build_dir |
| 222 | builddeps: *el7_builddeps |
| 223 | post-cache: |
| 224 | - sudo yum install -y fakeroot |
| 225 | - wget https://golang.org/dl/go1.12.9.linux-amd64.tar.gz -P /tmp/ |
| 226 | - sudo tar -C /usr/local -xzf /tmp/go1.12.9.linux-amd64.tar.gz |
| 227 | - export PATH=$PATH:/usr/local/go/bin |
| 228 | - export GOOS=linux |
| 229 | - export GOARCH=amd64 |
| 230 | - make cloudflared-rpm |
| 231 | |
| 232 | # cfsetup compose |
| 233 | default-stack: test_dbconnect |
| 234 | test_dbconnect: |
| 235 | compose: |
| 236 | up-args: |
| 237 | - --renew-anon-volumes |
| 238 | - --abort-on-container-exit |
| 239 | - --exit-code-from=cloudflared |
| 240 | files: |
| 241 | - dbconnect_tests/dbconnect.yaml |
| 242 | |