mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-31 10:27:14 +00:00 
			
		
		
		
	Cache APT packages
This commit is contained in:
		
							parent
							
								
									8500d81ff9
								
							
						
					
					
						commit
						c60755dd0a
					
				
							
								
								
									
										1
									
								
								.github/actions/build-component/action.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/actions/build-component/action.yml
									
									
									
									
										vendored
									
									
								
							| @ -36,6 +36,7 @@ runs: | |||||||
|         # - VCS-REF |         # - VCS-REF | ||||||
|         # - service version (may be given to Dockerfile) |         # - service version (may be given to Dockerfile) | ||||||
|         context: ${{ inputs.component }} |         context: ${{ inputs.component }} | ||||||
|  |         cache-from: type=local,src=/tmp/.kopano-repo-helper-cache | ||||||
|         build-args: | |         build-args: | | ||||||
|           ADDITIONAL_KOPANO_PACKAGES= |           ADDITIONAL_KOPANO_PACKAGES= | ||||||
|           ADDITIONAL_KOPANO_WEBAPP_PLUGINS= |           ADDITIONAL_KOPANO_WEBAPP_PLUGINS= | ||||||
|  | |||||||
							
								
								
									
										30
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										30
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @ -40,12 +40,13 @@ jobs: | |||||||
|       #    tests/test.exp |       #    tests/test.exp | ||||||
|       #    ./version.sh |       #    ./version.sh | ||||||
|       #    commander test tests/commander.yaml |       #    commander test tests/commander.yaml | ||||||
|       - name: Prepare Kopano APT Packages |       # - name: Cache Kopano Docker layers | ||||||
|         uses: docker/build-push-action@v2 |       #   uses: actions/cache@v2 | ||||||
|         with: |       #   with: | ||||||
|           push: false |       #     path: /tmp/.buildx-cache | ||||||
|           tags: kopano_repo_helper |       #     key: ${{ runner.os }}-buildx-${{ github.sha }} | ||||||
|           context: repo |       #     restore-keys: | | ||||||
|  |       #       ${{ runner.os }}-buildx- | ||||||
|       - name: Extract Version information |       - name: Extract Version information | ||||||
|         id: kopano_versions |         id: kopano_versions | ||||||
|         run: | |         run: | | ||||||
| @ -54,6 +55,23 @@ jobs: | |||||||
|           ./gh_output_dockertags.sh kapps |           ./gh_output_dockertags.sh kapps | ||||||
|           ./gh_output_dockertags.sh meet |           ./gh_output_dockertags.sh meet | ||||||
|           ./gh_output_dockertags.sh zpush |           ./gh_output_dockertags.sh zpush | ||||||
|  |       - name: Prepare Kopano APT Packages Cache  | ||||||
|  |         uses: actions/cache@v2 | ||||||
|  |         with: | ||||||
|  |           path: /tmp/.kopano-repo-helper-cache | ||||||
|  |           key: ${{ runner.os }}-kopano-${{ steps.kopano_versions.outputs.core_version }}-${{ steps.kopano_versions.outputs.webapp_version }}-${{ steps.kopano_versions.outputs.zpush_version }}-${{ steps.kopano_versions.outputs.meet_version }}-${{ steps.kopano_versions.outputs.kdav_version }} | ||||||
|  |       - name: Download Kopano APT Packages | ||||||
|  |         uses: docker/build-push-action@v2 | ||||||
|  |         with: | ||||||
|  |           push: false | ||||||
|  |           tags: kopano_repo_helper | ||||||
|  |           context: repo | ||||||
|  |           cache-from: type=local,src=/tmp/.kopano-repo-helper-cache | ||||||
|  |           cache-to: type=local,dest=/tmp/.kopano-repo-helper-cache-new,mode=max | ||||||
|  |       - name: Cleanup Kopano APT Packages Cache (Workaround) | ||||||
|  |         run: | | ||||||
|  |           rm -rf /tmp/.kopano-repo-helper-cache | ||||||
|  |           mv /tmp/.kopano-repo-helper-cache-new /tmp/.kopano-repo-helper-cache | ||||||
|       - uses: ./.github/actions/build-component |       - uses: ./.github/actions/build-component | ||||||
|         with: |         with: | ||||||
|           push: false |           push: false | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user