mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-07 03:35:35 +00:00
update release yml
This commit is contained in:
parent
38650a1a7e
commit
eacad79ad2
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@ -160,16 +160,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# list of Docker images to use as base name for tags
|
# list of Docker images to use as base name for tags
|
||||||
images: |
|
images: |
|
||||||
ghcr.io/${{ github.repository }}
|
ghcr.io/swing-opensource/swingmusic
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm, linux/arm64
|
platforms: linux/amd64,linux/arm, linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: ghcr.io/${{github.repository}}:${{inputs.tag}}, ${{env.LATEST_TAG}}
|
tags: ghcr.io/swing-opensource/swingmusic:${{inputs.tag}}, ${{env.LATEST_TAG}}
|
||||||
labels: org.opencontainers.image.title=Docker
|
labels: org.opencontainers.image.title=Docker
|
||||||
build-args: |
|
build-args: |
|
||||||
--provenance=false
|
--provenance=false
|
||||||
env:
|
env:
|
||||||
LATEST_TAG: ${{ inputs.is_latest == 'true' && format('ghcr.io/{0}:latest', github.repository) || '' }}
|
LATEST_TAG: ${{ inputs.is_latest == 'true' && format('ghcr.io/{0}:latest', 'swing-opensource/swingmusic') || '' }}
|
||||||
|
|
||||||
|
# TODO: REPLACE SWING-OPENSWINGMUSIC WITH github.repository in Docker meta step and following steps
|
@ -32,7 +32,11 @@ def get_artist_image_link(artist: str):
|
|||||||
|
|
||||||
url = f"https://api.deezer.com/search/artist?q={query}"
|
url = f"https://api.deezer.com/search/artist?q={query}"
|
||||||
response = requests.get(url, timeout=30)
|
response = requests.get(url, timeout=30)
|
||||||
data = response.json()
|
try:
|
||||||
|
data = response.json()
|
||||||
|
except requests.exceptions.JSONDecodeError:
|
||||||
|
print(f"Failed to decode json for {artist}")
|
||||||
|
return None
|
||||||
|
|
||||||
for res in data["data"]:
|
for res in data["data"]:
|
||||||
res_hash = create_hash(res["name"], decode=True)
|
res_hash = create_hash(res["name"], decode=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user