Commit 148bdd31 authored by Stephen Reaves's avatar Stephen Reaves

🚀 Added job for kubernetes

parent 93de55c3
apiVersion: batch/v1
kind: Job
metadata:
name: memebot
namespace: homelab-mastodon
spec:
selector: {}
template:
metadata:
name: memebot
spec:
containers:
- name: memebot
image: golang:1.13
env:
- name: MEME_CLIENT_NAME
value: Memebot
- name: MEME_NEXTCLOUD_ROOT
value: https://nextcloud.reaves.dev/remote.php/dav/files/reavessm/
- name: MEME_NEXTCLOUD_USER
value: reavessm
- name: MEME_NEXTCLOUD_PASS
value: Gamecocks14
- name: MEME_MASTODON_SERVER
value: https://mastodon.reaves.dev
- name: MEME_USERNAME
value: dummy@itsnotreal.com
- name: MEME_PASSWORD
value: Gamecocks14!Gamecocks14!
command:
- bash
- -c
- >
git clone https://gitlab.reaves.dev/reavessm/Memebot && cd Memebot && XDG_CACHE_HOME=. go run main.go
restartPolicy: Never
#!/bin/bash
# Written by: Stephen M. Reaves
# Created on: Thu, 15 Apr 2021
/usr/bin/git clone https://gitlab.reaves.dev/reavessm/Memebot && cd Memebot && go run main.go
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment