Compare commits
	
		
			8 commits
		
	
	
		
			main
			...
			ci/contain
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 245399413f | |||
| 5ebf2043c1 | |||
| 9bb1f2068f | |||
| 771db6c8b5 | |||
| c201ba00dc | |||
| 3ff3542b47 | |||
| 0d307182d1 | |||
| 9fd630bcc4 | 
					 2 changed files with 33 additions and 14 deletions
				
			
		|  | @ -25,30 +25,49 @@ jobs: | ||||||
|         uses: docker/setup-qemu-action@v2 |         uses: docker/setup-qemu-action@v2 | ||||||
| 
 | 
 | ||||||
|       - name: Set up Docker Buildx |       - name: Set up Docker Buildx | ||||||
|         uses: docker/setup-buildx-action@v1 |         uses: docker/setup-buildx-action@v2 | ||||||
| 
 | 
 | ||||||
|       - name: Login to Container Registry |       - name: Login to Container Registry | ||||||
|         uses: docker/login-action@v2 |         uses: docker/login-action@v2 | ||||||
|         with: |         with: | ||||||
|           registry: git.depeuter.dev |           registry: git.depeuter.dev | ||||||
|           username: ${{ gitea.actor }} |           username: ${{ github.actor }} | ||||||
|           password: ${{ secrets.CI_TOKEN }} |           password: ${{ secrets.CI_TOKEN }} | ||||||
| 
 | 
 | ||||||
|       - name: Get Meta |       - name: Get Meta for frontend | ||||||
|         id: meta |         id: meta_frontend | ||||||
|         uses: docker/metadata-action@v5 |         uses: docker/metadata-action@v5 | ||||||
|         with: |         with: | ||||||
|           images: git.depeuter.dev/${{ gitea.repository }} |           images: git.depeuter.dev/${{ github.repository }}/frontend | ||||||
| 
 | 
 | ||||||
|       - name: Build and push |       - name: Build and push frontend | ||||||
|         id: docker_build |         id: docker_build_frontend | ||||||
|         uses: docker/build-push-action@v5 |         uses: docker/build-push-action@v4 | ||||||
|         with: |         with: | ||||||
|           context: . |           context: ./frontend | ||||||
|           file: ./frontend/Dockerfile |           file: ./frontend/Dockerfile | ||||||
|           push: true |           push: true | ||||||
|           tags: ${{ steps.meta.output.tags }} |           tags: ${{ steps.meta_frontend.outputs.tags }} | ||||||
|           label: ${{ steps.meta.output.labels }} |           labels: ${{ steps.meta_frontend.outputs.labels }} | ||||||
| 
 | 
 | ||||||
|       - name: Image digest |       - name: Get Meta for backend | ||||||
|         run: echo ${{ steps.docker_build.outputs.digest }} |         id: meta_backend | ||||||
|  |         uses: docker/metadata-action@v5 | ||||||
|  |         with: | ||||||
|  |           images: git.depeuter.dev/${{ github.repository }}/backend | ||||||
|  | 
 | ||||||
|  |       - name: Build and push backend | ||||||
|  |         id: docker_build_backend | ||||||
|  |         uses: docker/build-push-action@v4 | ||||||
|  |         with: | ||||||
|  |           context: ./backend | ||||||
|  |           file: ./backend/Dockerfile | ||||||
|  |           push: true | ||||||
|  |           tags: ${{ steps.meta_backend.outputs.tags }} | ||||||
|  |           labels: ${{ steps.meta_backend.outputs.labels }} | ||||||
|  | 
 | ||||||
|  |       - name: Frontend image digest | ||||||
|  |         run: echo ${{ steps.docker_build_frontend.outputs.digest }} | ||||||
|  | 
 | ||||||
|  |       - name: Backend image digest | ||||||
|  |         run: echo ${{ steps.docker_build_backend.outputs.digest }} | ||||||
|  |  | ||||||
|  | @ -187,7 +187,7 @@ class QueueManager { | ||||||
| 
 | 
 | ||||||
|             try { |             try { | ||||||
|                 const timeout: number = (item.timeout ?? TIMEOUT) * item.song.trackCount; |                 const timeout: number = (item.timeout ?? TIMEOUT) * item.song.trackCount; | ||||||
|                 const result: DownloadResult = await this.lucida.download(item.song.url, '/tmp', timeout, current); |                 const result: DownloadResult = await this.lucida.download(item.song.url, '/data', timeout, current); | ||||||
| 
 | 
 | ||||||
|                 if (!result.success && (item.retries ?? 0) + 1 < RETRIES) { |                 if (!result.success && (item.retries ?? 0) + 1 < RETRIES) { | ||||||
|                     item.retries = (item.retries ?? 0) + 1; |                     item.retries = (item.retries ?? 0) + 1; | ||||||
|  |  | ||||||
		Reference in a new issue