mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat: rewrite scheduled_tasks in rust
This commit is contained in:
parent
4bfee8a090
commit
0862964305
20 changed files with 419 additions and 715 deletions
33
.github/workflows/scheduled_tasks.yml
vendored
33
.github/workflows/scheduled_tasks.yml
vendored
|
|
@ -1,33 +0,0 @@
|
|||
name: Build scheduled tasks runner Docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- .github/workflows/scheduled_tasks.yml
|
||||
- 'services/scheduled_tasks/**'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
if: github.repository == 'PluralKit/PluralKit'
|
||||
steps:
|
||||
- uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.CR_PAT }}
|
||||
- uses: actions/checkout@v2
|
||||
- run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
|
||||
- uses: docker/build-push-action@v2
|
||||
with:
|
||||
# https://github.com/docker/build-push-action/issues/378
|
||||
context: services/scheduled_tasks/
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/pluralkit/scheduled_tasks:${{ env.BRANCH_NAME }}
|
||||
ghcr.io/pluralkit/scheduled_tasks:${{ github.sha }}
|
||||
ghcr.io/pluralkit/scheduled_tasks:latest
|
||||
cache-from: type=registry,ref=ghcr.io/pluralkit/scheduledtasks:${{ env.BRANCH_NAME }}
|
||||
cache-to: type=inline
|
||||
Loading…
Add table
Add a link
Reference in a new issue