fix(ci): testing full release cycle before release branches can be merged
This commit is contained in:
		
							parent
							
								
									f5d36705fa
								
							
						
					
					
						commit
						07230ead91
					
				|  | @ -41,9 +41,16 @@ jobs: | ||||||
|         make lint |         make lint | ||||||
| 
 | 
 | ||||||
|     - name: Build |     - name: Build | ||||||
|  |       if: (!startsWith(github.head_ref, 'release')) | ||||||
|       run: | |       run: | | ||||||
|         make build |         make build | ||||||
| 
 | 
 | ||||||
|  |     # For release testing | ||||||
|  |     - name: Build All | ||||||
|  |       if: github.base_ref == 'master' && startsWith(github.head_ref, 'release') | ||||||
|  |       run: | | ||||||
|  |         make release | ||||||
|  | 
 | ||||||
|     - name: Test |     - name: Test | ||||||
|       env: |       env: | ||||||
|         CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} |         CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||||||
|  | @ -64,5 +71,12 @@ jobs: | ||||||
|       uses: docker/setup-buildx-action@v3 |       uses: docker/setup-buildx-action@v3 | ||||||
| 
 | 
 | ||||||
|     - name: Docker Build |     - name: Docker Build | ||||||
|  |       if: (!startsWith(github.head_ref, 'release')) | ||||||
|       run: | |       run: | | ||||||
|         make docker |         make docker | ||||||
|  | 
 | ||||||
|  |     # For release testing | ||||||
|  |     - name: Docker Build All | ||||||
|  |       if: github.base_ref == 'master' && startsWith(github.head_ref, 'release') | ||||||
|  |       run: | | ||||||
|  |         make docker-all | ||||||
|  |  | ||||||
|  | @ -22,6 +22,7 @@ | ||||||
| - 📖 Improved docs | - 📖 Improved docs | ||||||
| 
 | 
 | ||||||
| ## Important Notes | ## Important Notes | ||||||
|  | - Remove support of arm/v6 for distroless image runtime. Alpine tags still support arm/v6. | ||||||
| 
 | 
 | ||||||
| ## Breaking Changes | ## Breaking Changes | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								Makefile
								
								
								
								
							
							
						
						
									
										2
									
								
								Makefile
								
								
								
								
							|  | @ -71,7 +71,6 @@ docker-all: docker | ||||||
| 	$(DOCKER_BUILDX) --platform linux/amd64   -t $(REGISTRY)/$(REPOSITORY):latest-amd64   -t $(REGISTRY)/$(REPOSITORY):${VERSION}-amd64 . | 	$(DOCKER_BUILDX) --platform linux/amd64   -t $(REGISTRY)/$(REPOSITORY):latest-amd64   -t $(REGISTRY)/$(REPOSITORY):${VERSION}-amd64 . | ||||||
| 	$(DOCKER_BUILDX) --platform linux/arm64   -t $(REGISTRY)/$(REPOSITORY):latest-arm64   -t $(REGISTRY)/$(REPOSITORY):${VERSION}-arm64 . | 	$(DOCKER_BUILDX) --platform linux/arm64   -t $(REGISTRY)/$(REPOSITORY):latest-arm64   -t $(REGISTRY)/$(REPOSITORY):${VERSION}-arm64 . | ||||||
| 	$(DOCKER_BUILDX) --platform linux/ppc64le -t $(REGISTRY)/$(REPOSITORY):latest-ppc64le -t $(REGISTRY)/$(REPOSITORY):${VERSION}-ppc64le . | 	$(DOCKER_BUILDX) --platform linux/ppc64le -t $(REGISTRY)/$(REPOSITORY):latest-ppc64le -t $(REGISTRY)/$(REPOSITORY):${VERSION}-ppc64le . | ||||||
| 	$(DOCKER_BUILDX) --platform linux/arm/v6  -t $(REGISTRY)/$(REPOSITORY):latest-armv6   -t $(REGISTRY)/$(REPOSITORY):${VERSION}-armv6 . |  | ||||||
| 	$(DOCKER_BUILDX) --platform linux/arm/v7  -t $(REGISTRY)/$(REPOSITORY):latest-armv7   -t $(REGISTRY)/$(REPOSITORY):${VERSION}-armv7 . | 	$(DOCKER_BUILDX) --platform linux/arm/v7  -t $(REGISTRY)/$(REPOSITORY):latest-armv7   -t $(REGISTRY)/$(REPOSITORY):${VERSION}-armv7 . | ||||||
| 	$(DOCKER_BUILDX) --platform linux/s390x   -t $(REGISTRY)/$(REPOSITORY):latest-s390x -t $(REGISTRY)/$(REPOSITORY):${VERSION}-s390x . | 	$(DOCKER_BUILDX) --platform linux/s390x   -t $(REGISTRY)/$(REPOSITORY):latest-s390x -t $(REGISTRY)/$(REPOSITORY):${VERSION}-s390x . | ||||||
| 
 | 
 | ||||||
|  | @ -80,7 +79,6 @@ docker-push-all: docker-push | ||||||
| 	$(DOCKER_BUILDX_PUSH) --platform linux/amd64   -t $(REGISTRY)/$(REPOSITORY):latest-amd64   -t $(REGISTRY)/$(REPOSITORY):${VERSION}-amd64 . | 	$(DOCKER_BUILDX_PUSH) --platform linux/amd64   -t $(REGISTRY)/$(REPOSITORY):latest-amd64   -t $(REGISTRY)/$(REPOSITORY):${VERSION}-amd64 . | ||||||
| 	$(DOCKER_BUILDX_PUSH) --platform linux/arm64   -t $(REGISTRY)/$(REPOSITORY):latest-arm64   -t $(REGISTRY)/$(REPOSITORY):${VERSION}-arm64 . | 	$(DOCKER_BUILDX_PUSH) --platform linux/arm64   -t $(REGISTRY)/$(REPOSITORY):latest-arm64   -t $(REGISTRY)/$(REPOSITORY):${VERSION}-arm64 . | ||||||
| 	$(DOCKER_BUILDX_PUSH) --platform linux/ppc64le -t $(REGISTRY)/$(REPOSITORY):latest-ppc64le -t $(REGISTRY)/$(REPOSITORY):${VERSION}-ppc64le . | 	$(DOCKER_BUILDX_PUSH) --platform linux/ppc64le -t $(REGISTRY)/$(REPOSITORY):latest-ppc64le -t $(REGISTRY)/$(REPOSITORY):${VERSION}-ppc64le . | ||||||
| 	$(DOCKER_BUILDX_PUSH) --platform linux/arm/v6  -t $(REGISTRY)/$(REPOSITORY):latest-armv6   -t $(REGISTRY)/$(REPOSITORY):${VERSION}-armv6 . |  | ||||||
| 	$(DOCKER_BUILDX_PUSH) --platform linux/arm/v7  -t $(REGISTRY)/$(REPOSITORY):latest-armv7   -t $(REGISTRY)/$(REPOSITORY):${VERSION}-armv7 . | 	$(DOCKER_BUILDX_PUSH) --platform linux/arm/v7  -t $(REGISTRY)/$(REPOSITORY):latest-armv7   -t $(REGISTRY)/$(REPOSITORY):${VERSION}-armv7 . | ||||||
| 	$(DOCKER_BUILDX_PUSH) --platform linux/s390x   -t $(REGISTRY)/$(REPOSITORY):latest-s390x -t $(REGISTRY)/$(REPOSITORY):${VERSION}-s390x . | 	$(DOCKER_BUILDX_PUSH) --platform linux/s390x   -t $(REGISTRY)/$(REPOSITORY):latest-s390x -t $(REGISTRY)/$(REPOSITORY):${VERSION}-s390x . | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue