Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add freetranslators #84

Merged
merged 8 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading