name: Docker on: push: pull_request: workflow_dispatch: schedule: - cron: '0 16 * * 0' env: BOT_TOKEN: ${{ secrets.BOT_TOKEN }} TIMEZONE: Europe/Stockholm LOG_LEVEL: Info SQLITE_LOCATION: /data/jobs.sqlite jobs: build-and-push-docker: runs-on: ubuntu-latest permissions: contents: read packages: write steps: - uses: docker/login-action@5b7b28b1cc417bbd34cd8c225a957c9ce9adf7f2 if: github.event_name != 'pull_request' with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - uses: docker/login-action@5b7b28b1cc417bbd34cd8c225a957c9ce9adf7f2 if: github.event_name != 'pull_request' with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 - uses: astral-sh/setup-uv@ffff8aa2b52849f5073a005794c75e83208551ad with: python-version: 3.13 - run: uv sync --all-extras --dev - run: uv run pytest - uses: docker/setup-qemu-action@e77e8065d9f7ec6abdd9838668cd7b43924dd64d with: platforms: all - uses: docker/setup-buildx-action@1583c0f09d26c58c59d25b0eef29792b7ce99d9a - uses: docker/build-push-action@v6 with: context: . platforms: linux/amd64, linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: thelovinator/discord-reminder-bot:latest - uses: docker/build-push-action@v6 with: context: . platforms: linux/amd64, linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ghcr.io/thelovinator1/discord-reminder-bot:latest