Initial commit
This commit is contained in:
commit
89e81d78bd
5 changed files with 113 additions and 0 deletions
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
|||
FROM alpine:latest
|
||||
|
||||
RUN apk add --no-cache bash yq
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
COPY messages.yaml /messages.yaml
|
||||
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENV OUTPUT_FILE="message.txt"
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
6
README.md
Normal file
6
README.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Push Message Randomizer
|
||||
|
||||
This repository is the result of a long day and the typical "it's 12 o'clock at night and I'm bored but don't want to go to sleep" situation.
|
||||
Everyone knows it...
|
||||
|
||||
This container automatically selects one of the entries written in the `messages.yaml` file and writes it by default to a new file `message.txt`, which can also be changed as a variable `OUTPUT_FILE`.
|
14
entrypoint.sh
Normal file
14
entrypoint.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
MESSAGE_FILE="/messages.yaml"
|
||||
OUTPUT_FILE=${OUTPUT_FILE:-"message.txt"}
|
||||
|
||||
NUM_MESSAGES=$(yq eval '.messages | length' "$MESSAGE_FILE")
|
||||
|
||||
RANDOM_INDEX=$(( RANDOM % NUM_MESSAGES ))
|
||||
|
||||
MESSAGE=$(yq eval ".messages[$RANDOM_INDEX]" "$MESSAGE_FILE")
|
||||
|
||||
echo "$MESSAGE" > "$OUTPUT_FILE"
|
||||
|
||||
echo "Selected message written to $OUTPUT_FILE"
|
0
message.txt
Normal file
0
message.txt
Normal file
81
messages.yaml
Normal file
81
messages.yaml
Normal file
|
@ -0,0 +1,81 @@
|
|||
---
|
||||
messages:
|
||||
- |
|
||||
🚀 "Up, up, and away! Bumping versions to infinity... and maybe just the next release."
|
||||
Because nobody has time for bugs. Unless they're in the code... oh wait. 🐞
|
||||
|
||||
- |
|
||||
🐒 "A highly trained monkey bumped this version. Proceed with caution."
|
||||
Don't blame the monkey if things go bananas! 🍌
|
||||
|
||||
- |
|
||||
🌱 "New version, new me! The software goes through more changes than a teen in high school."
|
||||
Let's hope it doesn't start listening to moody music. 🎸
|
||||
|
||||
- |
|
||||
🔧 "I bumped the version so you don't have to. You're welcome." 🙌
|
||||
Your productivity just got a tiny boost. Or maybe not. 🤷
|
||||
|
||||
- |
|
||||
🐉 "Release the version-bumped Kraken!" 🐙
|
||||
May the bugs tremble at the sight of this update! ⚔️
|
||||
|
||||
- |
|
||||
📈 "Just like fine wine 🍷, this code only gets better with age... or so we hope."
|
||||
Try it out before it ferments too much. 😆
|
||||
|
||||
- |
|
||||
🌊 "The tides of change are upon us! 🌊 Version bumped!"
|
||||
Surf's up, developers! Grab your keyboards. 🏄
|
||||
|
||||
- |
|
||||
🔥 "🔥 It's lit! New version, who dis?"
|
||||
Shiny, new, and (hopefully) better than ever. ✨
|
||||
|
||||
- |
|
||||
🍕 "Bumped the version, but don't worry, it's still cheesy as ever!" 🧀
|
||||
Extra code toppings available on request. 🍄🍍
|
||||
|
||||
- |
|
||||
🤖 "Beep boop. Version upgraded. Resistance is futile."
|
||||
All bugs will be assimilated. 🕹️
|
||||
|
||||
- |
|
||||
🦸 "Like a superhero with a new suit, this version's ready to save the day!" 🦸♀️🦸♂️
|
||||
Or maybe just your afternoon. 😎
|
||||
|
||||
- |
|
||||
💥 "I came, I bumped, I merged. Mission complete."
|
||||
Version bump, like a boss. 👊
|
||||
|
||||
- |
|
||||
🧙 "A wild version bump appears! Cast 'git merge' to continue..." ⚔️
|
||||
Use your strongest spells. It's super effective! ✨
|
||||
|
||||
- |
|
||||
🌮 "Bumping versions like Taco Tuesday 🌮 - one at a time, but still a party."
|
||||
Pass the guac... and the release notes. 🥑
|
||||
|
||||
- |
|
||||
🐢 "Slow and steady bumps the version." 🐢
|
||||
Somewhere out there, a hare is laughing. 😂
|
||||
|
||||
- |
|
||||
🧠 "New version, same old bugs. But it's the thought that counts, right?"
|
||||
And we put a lot of thought into this one. 🤔
|
||||
|
||||
- |
|
||||
🍦 "Bumped the version. Treat yourself to some code-flavored ice cream." 🍨
|
||||
Now available in bug-free vanilla. 🥄
|
||||
|
||||
- |
|
||||
🎩 "Version bump, now with 100% more top hats and monocles." 🧐🎩
|
||||
Fancy code deserves a fancy bump. 🍷
|
||||
|
||||
- |
|
||||
🔍 "Bumped up the version, but we're still searching for that one missing semicolon."
|
||||
Will the bugs make it out alive? Stay tuned! 📺
|
||||
|
||||
- |
|
||||
🕶️ "Like sunglasses for your code - this version bump just made it cooler."
|
||||
Because who doesn't love a good upgrade? 😎
|
Loading…
Reference in a new issue