Skip to content

Commit

Permalink
add freetranslators (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
versun authored Jun 19, 2024
1 parent 14b2024 commit e7edd8e
Show file tree
Hide file tree
Showing 14 changed files with 470 additions and 1,760 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/dev-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: dev:Docker Image CI

on:
release:
types: [prereleased]
push:
branches:
- next

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for all tags and branches

- name: Get latest tag
id: latesttag
run: echo ::set-output name=tag::$(git describe --tags `git rev-list --tags --max-count=1`)

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push multi-platform Docker images
uses: docker/build-push-action@v5
with:
platforms: linux/arm64,linux/amd64
push: true
tags: rsstranslator/rsstranslator:dev,rsstranslator/rsstranslator:${{ steps.latesttag.outputs.tag }}


Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Docker Image CI
name: latest:Docker Image CI

on:
release:
types: [published]
push:
branches:
- main

jobs:
build:
Expand Down Expand Up @@ -32,3 +35,5 @@ jobs:
platforms: linux/arm64,linux/amd64
push: true
tags: rsstranslator/rsstranslator:latest,rsstranslator/rsstranslator:${{ steps.latesttag.outputs.tag }}


2 changes: 1 addition & 1 deletion core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def category(request, category: str):
except Exception as e:
# Log the exception and return an appropriate error response
logging.exception(
"Failed to read the category feed file: %s / %s", merge_file_path, str(e)
"Failed to read the category feed file: %s / %s", category, str(e)
)
return HttpResponse(status=500)

Expand Down
Loading

0 comments on commit e7edd8e

Please sign in to comment.