Skip to content

Commit

Permalink
update release yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cwilvx committed Nov 25, 2023
1 parent 38650a1 commit eacad79
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,16 +160,18 @@ jobs:
with:
# list of Docker images to use as base name for tags
images: |
ghcr.io/${{ github.repository }}
ghcr.io/swing-opensource/swingmusic
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm, linux/arm64
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
build-args: |
--provenance=false
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
6 changes: 5 additions & 1 deletion app/lib/artistlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ def get_artist_image_link(artist: str):

url = f"https://api.deezer.com/search/artist?q={query}"
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"]:
res_hash = create_hash(res["name"], decode=True)
Expand Down

0 comments on commit eacad79

Please sign in to comment.