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

fix: arm64 images #482

Merged
merged 4 commits into from
Aug 14, 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
1 change: 0 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,3 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
context: .
dockerfile: ./Dockerfile
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN if [ "$BUILDPLATFORM" = "arm64" ]; then \
RUN git clone --depth 1 https://github.com/xenova/chat-downloader.git

# Production stage
FROM --platform=$BUILDPLATFORM debian:bookworm-slim
FROM debian:bookworm-slim
WORKDIR /opt/app

# Install dependencies
Expand Down
84 changes: 0 additions & 84 deletions Dockerfile.aarch64

This file was deleted.

2 changes: 1 addition & 1 deletion internal/live/live.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ OUTER:
// stream is live
log.Debug().Str("channel", lwc.Edges.Channel.Name).Msg("stream is live; checking for restrictions before archiving")
// check for any user-constraints before archiving
if lwc.Edges.TitleRegex != nil && len(lwc.Edges.TitleRegex) > 0 {
if len(lwc.Edges.TitleRegex) > 0 {
// run regexes against title
for _, titleRegex := range lwc.Edges.TitleRegex {
regex, err := regexp.Compile(titleRegex.Regex)
Expand Down
2 changes: 1 addition & 1 deletion internal/live/vod.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (s *Service) CheckVodWatchedChannels(ctx context.Context, logger zerolog.Lo
continue
}
// check if there are any title regexes that need to be tested
if watch.Edges.TitleRegex != nil && len(watch.Edges.TitleRegex) > 0 {
if len(watch.Edges.TitleRegex) > 0 {
// run regexes against title
for _, titleRegex := range watch.Edges.TitleRegex {
regex, err := regexp.Compile(titleRegex.Regex)
Expand Down
Loading