feat: Major refactor, implement web, caching, better tests and build files
* Update golang version to 1.24 * Update multiarch Dockerfile to be more ISA agnostic * Refactor existing code and properly structure project into modules * Get rid of global variables except where necessary (go:embed) * Add default values to Config * Add webserver with templates to finally correctly serve videos and gifs * Add tiny caching library to decrease api load and improve latency * Improve Webhook data preparation by filtering out redundant links from the tweet text and properly attaching videos and gifs in separate webhook request by utilising new webserver * Improve tests for filter function * Improve bake definition for easier CI integration
This commit is contained in:
parent
7562b86894
commit
21d580d1a6
24 changed files with 752 additions and 209 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM golang:1.22 AS build
|
||||
FROM golang:1.24 AS build
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends ca-certificates
|
||||
|
@ -17,4 +17,4 @@ COPY --from=build /tmp/app/discord-tweeter .
|
|||
#COPY ./config.example.toml ./config.toml
|
||||
|
||||
ENTRYPOINT [ "./discord-tweeter" ]
|
||||
# CMD [ "./config.toml" ]
|
||||
#CMD [ "./config.toml" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue