AUTH-2872: Adds centos-6 build
This commit is contained in:
		
							parent
							
								
									28d556b8d4
								
							
						
					
					
						commit
						a42b66e8bd
					
				
							
								
								
									
										2
									
								
								Makefile
								
								
								
								
							
							
						
						
									
										2
									
								
								Makefile
								
								
								
								
							|  | @ -51,6 +51,8 @@ endif | ||||||
| 
 | 
 | ||||||
| ifeq ($(FLAVOR), centos-7) | ifeq ($(FLAVOR), centos-7) | ||||||
| 	TARGET_PUBLIC_REPO ?= el7 | 	TARGET_PUBLIC_REPO ?= el7 | ||||||
|  | else ifeq ($(FLAVOR), centos-6) | ||||||
|  | 	TARGET_PUBLIC_REPO ?= el6 | ||||||
| else | else | ||||||
| 	TARGET_PUBLIC_REPO ?= $(FLAVOR) | 	TARGET_PUBLIC_REPO ?= $(FLAVOR) | ||||||
| endif | endif | ||||||
|  |  | ||||||
							
								
								
									
										43
									
								
								cfsetup.yaml
								
								
								
								
							
							
						
						
									
										43
									
								
								cfsetup.yaml
								
								
								
								
							|  | @ -170,10 +170,40 @@ jessie: *stretch | ||||||
| 
 | 
 | ||||||
| buster: *stretch | buster: *stretch | ||||||
| 
 | 
 | ||||||
|  | centos-6: | ||||||
|  |   build-rpm: | ||||||
|  |     build_dir: *build_dir | ||||||
|  |     builddeps: &el6_builddeps | ||||||
|  |       - https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm | ||||||
|  |     post-cache: | ||||||
|  |       - source /usr/local/rvm/scripts/rvm | ||||||
|  |       - rvm use 1.9 | ||||||
|  |       - sudo yum install -y fakeroot | ||||||
|  |       - wget https://golang.org/dl/go1.12.9.linux-amd64.tar.gz -P /tmp/ | ||||||
|  |       - sudo tar -C /usr/local -xzf /tmp/go1.12.9.linux-amd64.tar.gz | ||||||
|  |       - export PATH=$PATH:/usr/local/go/bin | ||||||
|  |       - export GOOS=linux | ||||||
|  |       - export GOARCH=amd64 | ||||||
|  |       - make cloudflared-rpm | ||||||
|  |   publish-rpm: | ||||||
|  |     build_dir: *build_dir | ||||||
|  |     builddeps: *el6_builddeps | ||||||
|  |     post-cache: | ||||||
|  |       - source /usr/local/rvm/scripts/rvm | ||||||
|  |       - rvm use 1.9 | ||||||
|  |       - sudo yum install -y fakeroot | ||||||
|  |       - wget https://golang.org/dl/go1.12.9.linux-amd64.tar.gz -P /tmp/ | ||||||
|  |       - sudo tar -C /usr/local -xzf /tmp/go1.12.9.linux-amd64.tar.gz | ||||||
|  |       - export PATH=$PATH:/usr/local/go/bin | ||||||
|  |       - export GOOS=linux | ||||||
|  |       - export GOARCH=amd64 | ||||||
|  |       - make publish-rpm | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| centos-7: | centos-7: | ||||||
|   publish-rpm: |   publish-rpm: | ||||||
|     build_dir: *build_dir |     build_dir: *build_dir | ||||||
|     builddeps: |     builddeps: &el7_builddeps | ||||||
|       - https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm |       - https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | ||||||
|     post-cache: |     post-cache: | ||||||
|       - sudo yum install -y fakeroot |       - sudo yum install -y fakeroot | ||||||
|  | @ -183,6 +213,17 @@ centos-7: | ||||||
|       - export GOOS=linux |       - export GOOS=linux | ||||||
|       - export GOARCH=amd64 |       - export GOARCH=amd64 | ||||||
|       - make publish-rpm |       - make publish-rpm | ||||||
|  |   build-rpm: | ||||||
|  |     build_dir: *build_dir | ||||||
|  |     builddeps: *el7_builddeps | ||||||
|  |     post-cache: | ||||||
|  |       - sudo yum install -y fakeroot | ||||||
|  |       - wget https://golang.org/dl/go1.12.9.linux-amd64.tar.gz -P /tmp/ | ||||||
|  |       - sudo tar -C /usr/local -xzf /tmp/go1.12.9.linux-amd64.tar.gz | ||||||
|  |       - export PATH=$PATH:/usr/local/go/bin | ||||||
|  |       - export GOOS=linux | ||||||
|  |       - export GOARCH=amd64 | ||||||
|  |       - make cloudflared-rpm | ||||||
| 
 | 
 | ||||||
| # cfsetup compose | # cfsetup compose | ||||||
| default-stack: test_dbconnect | default-stack: test_dbconnect | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue