This repository has been archived by the owner on May 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch update contains a new Debian-based docker image, small improvements to the reddit cog, and mostly dependencies updates. For more info, please check out the changelog. - Noelle
- Loading branch information
Showing
21 changed files
with
1,029 additions
and
421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
################################################################## | ||
# Rin's Example ENV # | ||
# Replace the values with the appropriate values # | ||
################################################################## | ||
|
||
# Prod Bot Token | ||
TOKEN="botToken" | ||
|
||
# Note that if you are using the production builds, use the same exact token as TOKEN. | ||
# If you are using the development builds, use the token that you wish to use for the dev bot. | ||
TESTING_BOT_TOKEN="testBotToken" | ||
|
||
# API Keys + Access Tokens | ||
BLUE_ALLIANCE_API_KEY="apiKey" | ||
DISCORD_BOTS_API_KEY="apiKey" | ||
FIRST_EVENTS_FINAL_KEY="apiKey" | ||
GITHUB_API_ACCESS_TOKEN="apiKey" | ||
HYPIXEL_API_KEY="apiKey" | ||
REDDIT_ID="apiKey" | ||
REDDIT_SECRET="apiKey" | ||
TENOR_API_KEY="apiKey" | ||
TOP_GG_API_KEY="apiKey" | ||
TWITCH_API_ACCESS_TOKEN="apiKey" | ||
TWITCH_API_CLIENT_ID="apiKey" | ||
TWITTER_BEARER_TOKEN="apiKey" | ||
YOUTUBE_API_KEY="apiKey" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: Docker Build (GHCR, Debian) | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- "**.md" | ||
branches: | ||
- dev | ||
tags: | ||
- 'v*' | ||
|
||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Prepare Docker Meta | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: | | ||
ghcr.io/no767/rin | ||
tags: | | ||
type=semver,pattern={{raw}} | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
type=semver,pattern={{major}} | ||
type=semver,pattern={{raw}},suffix=-bullseye | ||
type=semver,pattern={{version}},suffix=-bullseye | ||
type=semver,pattern={{major}}.{{minor}},suffix=-bullseye | ||
type=semver,pattern={{major}},suffix=-bullseye | ||
type=edge,branch=dev,suffix=-bullseye | ||
type=edge,branch=dev | ||
- name: Setup Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v2 | ||
with: | ||
version: latest | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Cache Docker layers | ||
uses: actions/cache@v2 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-buildx- | ||
- name: Build and push | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
file: ./Debian-Docker/Dockerfile | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache-new | ||
|
||
- name: Move Cache | ||
run: | | ||
rm -rf /tmp/.buildx-cache | ||
mv /tmp/.buildx-cache-new /tmp/.buildx-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Docker Build (Hub, Debian) | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- "**.md" | ||
branches: | ||
- dev | ||
tags: | ||
- 'v*' | ||
|
||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Prepare Docker Meta | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: | | ||
no767/rin-prod | ||
tags: | | ||
type=semver,pattern={{raw}} | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
type=semver,pattern={{major}} | ||
type=semver,pattern={{raw}},suffix=-bullseye | ||
type=semver,pattern={{version}},suffix=-bullseye | ||
type=semver,pattern={{major}}.{{minor}},suffix=-bullseye | ||
type=semver,pattern={{major}},suffix=-bullseye | ||
type=edge,branch=dev,suffix=-bullseye | ||
type=edge,branch=dev | ||
- name: Setup Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v2 | ||
with: | ||
version: latest | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_TOKEN }} | ||
|
||
- name: Cache Docker layers | ||
uses: actions/cache@v2 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-buildx-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-buildx- | ||
- name: Build and push | ||
uses: docker/build-push-action@v3 | ||
with: | ||
context: . | ||
file: ./Debian-Docker/Dockerfile | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,dest=/tmp/.buildx-cache-new | ||
|
||
- name: Move Cache | ||
run: | | ||
rm -rf /tmp/.buildx-cache | ||
mv /tmp/.buildx-cache-new /tmp/.buildx-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
- name: Create Tag + Bump Version | ||
uses: mathieudutour/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
github_token: ${{ secrets.PAT_TOKEN }} | ||
release_branches: master | ||
default_bump: minor | ||
custom_release_rules: "Release:major,Update:minor,Fix:patch" | ||
|
@@ -22,6 +22,6 @@ jobs: | |
uses: ncipollo/release-action@v1 | ||
with: | ||
bodyFile: "changelog.md" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
token: ${{ secrets.PAT_TOKEN }} | ||
tag: ${{ steps.tag_version.outputs.new_tag }} | ||
name: ${{ steps.tag_version.outputs.new_tag }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,4 +54,5 @@ daTokens/ | |
button-test.py | ||
spotify-links.txt | ||
Bot/Cogs/test.py | ||
test.sh | ||
test.sh | ||
smarter-help.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.