Compare commits
No commits in common. "ci/containers" and "main" have entirely different histories.
ci/contain
...
main
2 changed files with 14 additions and 33 deletions
|
@ -25,49 +25,30 @@ 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@v2
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- 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: ${{ github.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.CI_TOKEN }}
|
password: ${{ secrets.CI_TOKEN }}
|
||||||
|
|
||||||
- name: Get Meta for frontend
|
- name: Get Meta
|
||||||
id: meta_frontend
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: git.depeuter.dev/${{ github.repository }}/frontend
|
images: git.depeuter.dev/${{ gitea.repository }}
|
||||||
|
|
||||||
- name: Build and push frontend
|
- name: Build and push
|
||||||
id: docker_build_frontend
|
id: docker_build
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./frontend
|
context: .
|
||||||
file: ./frontend/Dockerfile
|
file: ./frontend/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta_frontend.outputs.tags }}
|
tags: ${{ steps.meta.output.tags }}
|
||||||
labels: ${{ steps.meta_frontend.outputs.labels }}
|
label: ${{ steps.meta.output.labels }}
|
||||||
|
|
||||||
- name: Get Meta for backend
|
- name: Image digest
|
||||||
id: meta_backend
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||||
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, '/data', timeout, current);
|
const result: DownloadResult = await this.lucida.download(item.song.url, '/tmp', 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