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
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to Container Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: git.depeuter.dev
|
||||
username: ${{ gitea.actor }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.CI_TOKEN }}
|
||||
|
||||
- name: Get Meta
|
||||
id: meta
|
||||
- name: Get Meta for frontend
|
||||
id: meta_frontend
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: git.depeuter.dev/${{ gitea.repository }}
|
||||
images: git.depeuter.dev/${{ github.repository }}/frontend
|
||||
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v5
|
||||
- name: Build and push frontend
|
||||
id: docker_build_frontend
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
context: ./frontend
|
||||
file: ./frontend/Dockerfile
|
||||
push: true
|
||||
tags: ${{ steps.meta.output.tags }}
|
||||
label: ${{ steps.meta.output.labels }}
|
||||
tags: ${{ steps.meta_frontend.outputs.tags }}
|
||||
labels: ${{ steps.meta_frontend.outputs.labels }}
|
||||
|
||||
- name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
- name: Get Meta for backend
|
||||
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 {
|
||||
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) {
|
||||
item.retries = (item.retries ?? 0) + 1;
|
||||
|
|
Reference in a new issue