Switching builds to include PHP version to limit memory requirements on deploy.
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Cloud Apache Container / Build-and-Push (74) (push) Failing after 56s
				
			
		
			
				
	
				Cloud Apache Container / Build-and-Push (80) (push) Failing after 36s
				
			
		
			
				
	
				Cloud Apache Container / Build-and-Push (81) (push) Failing after 56s
				
			
		
			
				
	
				Cloud Apache Container / Build-and-Push (82) (push) Failing after 55s
				
			
		
			
				
	
				Cloud Apache Container / Build-and-Push (83) (push) Failing after 40s
				
			
		
			
				
	
				Cloud Apache Container / Build-and-Push (84) (push) Failing after 57s
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Cloud Apache Container / Build-and-Push (74) (push) Failing after 56s
				
			Cloud Apache Container / Build-and-Push (80) (push) Failing after 36s
				
			Cloud Apache Container / Build-and-Push (81) (push) Failing after 56s
				
			Cloud Apache Container / Build-and-Push (82) (push) Failing after 55s
				
			Cloud Apache Container / Build-and-Push (83) (push) Failing after 40s
				
			Cloud Apache Container / Build-and-Push (84) (push) Failing after 57s
				
			improve build size and speed for images.
This commit is contained in:
		@@ -8,6 +8,9 @@ on:
 | 
			
		||||
jobs:
 | 
			
		||||
  Build-and-Push:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    strategy:
 | 
			
		||||
      matrix:
 | 
			
		||||
        phpver: [74, 80, 81, 82, 83, 84]
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
@@ -16,19 +19,22 @@ jobs:
 | 
			
		||||
        uses: docker/setup-qemu-action@v3
 | 
			
		||||
 | 
			
		||||
      - name: Set up Docker Buildx
 | 
			
		||||
        uses: https://github.com/docker/setup-buildx-action@v3
 | 
			
		||||
      
 | 
			
		||||
        uses: docker/setup-buildx-action@v3
 | 
			
		||||
 | 
			
		||||
      - name: Login to Gitea
 | 
			
		||||
        uses: docker/login-action@v3
 | 
			
		||||
        with:
 | 
			
		||||
          registry: repo.anhonesthost.net
 | 
			
		||||
          username: ${{ secrets.CI_USER }}
 | 
			
		||||
          password: ${{ secrets.CI_TOKEN }}
 | 
			
		||||
      
 | 
			
		||||
      - name: Build Image
 | 
			
		||||
 | 
			
		||||
      - name: Build and Push Image
 | 
			
		||||
        uses: docker/build-push-action@v6
 | 
			
		||||
        with:
 | 
			
		||||
          platforms: linux/amd64
 | 
			
		||||
          push: true
 | 
			
		||||
          build-args: |
 | 
			
		||||
            PHPVER=${{ matrix.phpver }}
 | 
			
		||||
          tags: |
 | 
			
		||||
            repo.anhonesthost.net/cloud-hosting-platform/cac:latest
 | 
			
		||||
            repo.anhonesthost.net/cloud-hosting-platform/cac:php${{ matrix.phpver }}
 | 
			
		||||
            ${{ matrix.phpver == '84' && 'repo.anhonesthost.net/cloud-hosting-platform/cac:latest' || '' }}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user