6 Commits

Author SHA1 Message Date
9f562d3430 Update https://gitea.com/actions/checkout action to v5
All checks were successful
Build container / Build (pull_request) Successful in 2m9s
2025-09-03 12:01:11 +00:00
cfcc88f8d4 [ci skip] update deployment 2025-07-30 11:39:43 +00:00
3d69f9b5d8 force tuple type
All checks were successful
Build container / Build (push) Successful in 41s
2025-07-30 11:35:47 +00:00
0ee2e3ac72 [ci skip] update deployment 2025-07-30 11:19:10 +00:00
840fd90b75 fix invalid scheduling
All checks were successful
Build container / Build (push) Successful in 38s
2025-07-30 12:41:37 +02:00
5e514bcc20 switch to semver so that renovate is happy
All checks were successful
Build container / Build (push) Successful in 35s
2025-07-30 12:17:31 +02:00
4 changed files with 19 additions and 21 deletions

View File

@@ -14,7 +14,20 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: https://gitea.com/actions/checkout@v4 - uses: https://gitea.com/actions/checkout@v5
- name: Fetch tags from main branch
id: version
run: |
git fetch origin main --tags
LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
# remove the 'v' prefix from the tag name
echo "BUILD_NAME=${LATEST_TAG//v}" >> $GITHUB_OUTPUT
- name: Output the version that is being used
run: |
echo "Building for version ${{ steps.version.outputs.BUILD_NAME }}"
- name: Login to Docker Registry - name: Login to Docker Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
@@ -23,6 +36,8 @@ jobs:
username: ${{ gitea.repository_owner }} username: ${{ gitea.repository_owner }}
password: ${{ secrets.PACKAGE_REGISTRY_ACCESS }} password: ${{ secrets.PACKAGE_REGISTRY_ACCESS }}
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
@@ -31,5 +46,5 @@ jobs:
with: with:
context: . context: .
# use the current commit SHA as the tag # use the current commit SHA as the tag
tags: git.kluster.moll.re/remoll/journal-bot:${{ gitea.sha }} tags: git.kluster.moll.re/remoll/journal-bot:${{ steps.version.outputs.BUILD_NAME }}-${{ gitea.run_number }}
push: true push: true

View File

@@ -49,14 +49,11 @@ class SendLeaderboard():
else: else:
# set the message sending time; include UTC shift +2 # set the message sending time; include UTC shift +2
sending_time = time(hour=12, minute=0, second=0, tzinfo=timezone(timedelta(hours=2))) sending_time = time(hour=12, minute=0, second=0, tzinfo=timezone(timedelta(hours=2)))
job_queue.run_daily(self.callback_leaderboard, when=sending_time, day=-1) job_queue.run_daily(self.callback_leaderboard, time=sending_time, days=(0,))
async def callback_leaderboard(self, context): async def callback_leaderboard(self, context):
"""Send a weakly leaderboard to the chat.""" """Send a weakly leaderboard to the chat."""
if date.today().weekday() != 1:
self.logger.info("Today is not Monday, skipping leaderboard.")
return
# get the top contributions of the past week, month and year: # get the top contributions of the past week, month and year:
ranking_week = get_author_ranking(7) ranking_week = get_author_ranking(7)

View File

@@ -12,4 +12,4 @@ namespace: journal
images: images:
- name: journal - name: journal
newName: git.kluster.moll.re/remoll/journal-bot newName: git.kluster.moll.re/remoll/journal-bot
newTag: 29d951427d6f3377e43767916cefb07e03e9eab8 newTag: 1.1.0-17

View File

@@ -1,18 +1,6 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"dependencyDashboard": true, "dependencyDashboard": true,
"regexManagers": [
{
"fileMatch": ["kustomization\\.yaml"],
"matchStrings": [
"- name:\\s*(?<depName>\\S+)\\s*\\n\\s*newName:\\s*(?<lookupName>\\S+)\\s*\\n\\s*newTag:\\s*(?<currentValue>[a-f0-9]{7,40})"
],
"datasourceTemplate": "docker",
"versioningTemplate": "loose",
"extractVersionTemplate": "{{ currentValue }}",
"lookupNameTemplate": "{{ lookupName }}"
},
],
"packageRules": [ "packageRules": [
// Fully automatically update the container version referenced in the deployment // Fully automatically update the container version referenced in the deployment
{ {
@@ -24,8 +12,6 @@
"registryUrls": [ "registryUrls": [
"https://git.kluster.moll.re" "https://git.kluster.moll.re"
], ],
// Since the images use the commit sha as their tag, simply match any tag
"versioning": "regex:(.*)"
} }
], ],
} }