main #4

Merged
bizcochito merged 4 commits from main into develop 2024-11-29 15:03:12 +00:00
3 changed files with 666 additions and 602 deletions

1236
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -7,10 +7,8 @@
################################################################################ ################################################################################
# Create a stage for building the application. # Create a stage for building the application.
ARG RUST_VERSION=1.71.0
ARG APP_NAME=mastodon-image-uploader-bot ARG APP_NAME=mastodon-image-uploader-bot
FROM rust:${RUST_VERSION}-slim-bullseye AS build FROM rust:1.79.0-slim-bullseye AS build
ARG APP_NAME
WORKDIR /app WORKDIR /app
RUN apt update && apt install pkg-config openssl libssl-dev -y RUN apt update && apt install pkg-config openssl libssl-dev -y
# Build the application. # Build the application.

View File

@ -1,28 +0,0 @@
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: bot-cronjob
spec:
schedule: "* */6 * * *" # Runs every 6 hours
jobTemplate:
spec:
template:
spec:
containers:
- name: bot-job
image: git.fai.st/fedi-image-bot/mastodon-image-uploader-bot:v1.0.0
volumeMounts:
- name: config-toml
mountPath: /app/config.toml
readOnly: true
- name: mastodon-token
mountPath: /app/mastodon-data.toml
readOnly: true
restartPolicy: Never
volumes:
- name: config-toml
configMap:
name: bot-config-toml
- name: mastodon-token
secret:
secretName: mastodon-data