diff --git a/.github/renovate.json b/.github/renovate.json index 734986c..7884adb 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,6 +1,8 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": ["config:recommended"], + "extends": [ + "config:recommended" + ], "automerge": true, "configMigration": true, "dependencyDashboard": false, diff --git a/.gitea/workflows/build.yml b/.github/workflows/build.yml similarity index 63% rename from .gitea/workflows/build.yml rename to .github/workflows/build.yml index f340331..7466674 100644 --- a/.gitea/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ on: pull_request: workflow_dispatch: schedule: - - cron: "@daily" + - cron: "0 15 * * 0" env: TEST_WEBHOOK_URL: ${{ secrets.TEST_WEBHOOK_URL }} @@ -17,37 +17,29 @@ jobs: runs-on: ubuntu-latest steps: # GitHub Container Registry - - uses: https://github.com/docker/login-action@v3 + - uses: docker/login-action@v3 if: github.event_name != 'pull_request' with: registry: ghcr.io username: thelovinator1 - password: ${{ secrets.PACKAGES_WRITE_GITHUB_TOKEN }} - - # Gitea Container Registry - - uses: https://github.com/docker/login-action@v3 - if: github.event_name != 'pull_request' - with: - registry: git.lovinator.space - username: thelovinator - password: ${{ secrets.PACKAGES_WRITE_GITEA_TOKEN }} + password: ${{ secrets.GITHUB_TOKEN }} # Download the latest commit from the master branch - - uses: https://github.com/actions/checkout@v4 + - uses: actions/checkout@v4 # Set up QEMU - id: qemu - uses: https://github.com/docker/setup-qemu-action@v3 + uses: docker/setup-qemu-action@v3 with: image: tonistiigi/binfmt:master platforms: linux/amd64,linux/arm64 cache-image: false # Set up Buildx so we can build multi-arch images - - uses: https://github.com/docker/setup-buildx-action@v3 + - uses: docker/setup-buildx-action@v3 # Install the latest version of ruff - - uses: https://github.com/astral-sh/ruff-action@v3 + - uses: astral-sh/ruff-action@v3 with: version: "latest" @@ -76,23 +68,22 @@ jobs: # Extract metadata (tags, labels) from Git reference and GitHub events for Docker - id: meta - uses: https://github.com/docker/metadata-action@v5 + uses: docker/metadata-action@v5 env: DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index with: images: | ghcr.io/thelovinator1/discord-rss-bot - git.lovinator.space/thelovinator/discord-rss-bot tags: | - type=raw,value=latest,enable=${{ gitea.ref == format('refs/heads/{0}', 'master') }} - type=raw,value=master,enable=${{ gitea.ref == format('refs/heads/{0}', 'master') }} + type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }} + type=raw,value=master,enable=${{ github.ref == format('refs/heads/{0}', 'master') }} # Build and push the Docker image - - uses: https://github.com/docker/build-push-action@v6 + - uses: docker/build-push-action@v6 with: context: . platforms: linux/amd64,linux/arm64 - push: ${{ gitea.event_name != 'pull_request' }} + push: ${{ github.event_name != 'pull_request' }} labels: ${{ steps.meta.outputs.labels }} tags: ${{ steps.meta.outputs.tags }} annotations: ${{ steps.meta.outputs.annotations }}