Add new action Build mailcow backup image
This commit is contained in:
		
							
								
								
									
										34
									
								
								.github/workflows/rebuild_backup_image.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								.github/workflows/rebuild_backup_image.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| name: Build mailcow backup image | ||||
|  | ||||
| on: | ||||
|   schedule: | ||||
|     # At 00:00 on Sunday | ||||
|     - cron: "0 0 * * 0" | ||||
|   workflow_dispatch: # Allow to run workflow manually | ||||
|  | ||||
| jobs: | ||||
|   docker_image_build: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v3 | ||||
|  | ||||
|       - name: Set up QEMU | ||||
|         uses: docker/setup-qemu-action@v2 | ||||
|  | ||||
|       - name: Set up Docker Buildx | ||||
|         uses: docker/setup-buildx-action@v2 | ||||
|  | ||||
|       - name: Login to Docker Hub | ||||
|         uses: docker/login-action@v2 | ||||
|         with: | ||||
|           username: ${{ secrets.BACKUPIMAGEBUILD_ACTION_DOCKERHUB_USERNAME }} | ||||
|           password: ${{ secrets.BACKUPIMAGEBUILD_ACTION_DOCKERHUB_TOKEN }} | ||||
|  | ||||
|       - name: Build and push | ||||
|         uses: docker/build-push-action@v3 | ||||
|         with: | ||||
|           context: . | ||||
|           file: data/Dockerfiles/backup/Dockerfile | ||||
|           push: true | ||||
|           tags: mailcow/backup:latest | ||||
		Reference in New Issue
	
	Block a user