Skip to content

Commit

Permalink
fix: arm64 images (#482)
Browse files Browse the repository at this point in the history
* no need to check for nil - len does that
  • Loading branch information
Zibbp authored Aug 14, 2024
1 parent 42d4593 commit b94187a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 88 deletions.
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

0 comments on commit b94187a

Please sign in to comment.