Skip to content

Commit 1508147

Browse files
committed
Go back to GitHub workflows
1 parent 2f6f74c commit 1508147

4 files changed

Lines changed: 22 additions & 48 deletions

File tree

.gitea/workflows/uv.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.
File renamed without changes.
Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
pull_request:
66
workflow_dispatch:
77
schedule:
8-
- cron: "@weekly"
8+
- cron: '0 16 * * 0'
99

1010
env:
1111
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
@@ -16,34 +16,45 @@ env:
1616
jobs:
1717
build-and-push-docker:
1818
runs-on: ubuntu-latest
19+
permissions:
20+
contents: read
21+
packages: write
1922
steps:
20-
- uses: actions/checkout@v4
21-
- uses: astral-sh/setup-uv@v5
22-
with:
23-
python-version: 3.13
24-
- run: uv sync --all-extras --dev
25-
- run: uv run pytest
26-
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392
27-
with:
28-
platforms: all
29-
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435
3023
- uses: docker/login-action@3d100841f68d4548bf57e52eb27bd33ec5069f55
3124
if: github.event_name != 'pull_request'
3225
with:
3326
username: ${{ secrets.DOCKERHUB_USERNAME }}
3427
password: ${{ secrets.DOCKERHUB_TOKEN }}
28+
3529
- uses: docker/login-action@3d100841f68d4548bf57e52eb27bd33ec5069f55
3630
if: github.event_name != 'pull_request'
3731
with:
3832
registry: ghcr.io
3933
username: ${{ github.repository_owner }}
4034
password: ${{ secrets.GITHUB_TOKEN }}
35+
36+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
37+
38+
- uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86
39+
with:
40+
python-version: 3.13
41+
42+
- run: uv sync --all-extras --dev
43+
- run: uv run pytest
44+
45+
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392
46+
with:
47+
platforms: all
48+
49+
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435
50+
4151
- uses: docker/build-push-action@v6
4252
with:
4353
context: .
4454
platforms: linux/amd64, linux/arm64
4555
push: ${{ github.event_name != 'pull_request' }}
4656
tags: thelovinator/discord-reminder-bot:latest
57+
4758
- uses: docker/build-push-action@v6
4859
with:
4960
context: .

0 commit comments

Comments
 (0)