Use GitHub Actions instead of Gitea Actions
This commit is contained in:
parent
bda9e424e5
commit
f70f870a7b
2 changed files with 15 additions and 22 deletions
4
.github/renovate.json
vendored
4
.github/renovate.json
vendored
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"extends": ["config:recommended"],
|
"extends": [
|
||||||
|
"config:recommended"
|
||||||
|
],
|
||||||
"automerge": true,
|
"automerge": true,
|
||||||
"configMigration": true,
|
"configMigration": true,
|
||||||
"dependencyDashboard": false,
|
"dependencyDashboard": false,
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "@daily"
|
- cron: "0 15 * * 0"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TEST_WEBHOOK_URL: ${{ secrets.TEST_WEBHOOK_URL }}
|
TEST_WEBHOOK_URL: ${{ secrets.TEST_WEBHOOK_URL }}
|
||||||
|
|
@ -17,37 +17,29 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# GitHub Container Registry
|
# GitHub Container Registry
|
||||||
- uses: https://github.com/docker/login-action@v3
|
- uses: docker/login-action@v3
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: thelovinator1
|
username: thelovinator1
|
||||||
password: ${{ secrets.PACKAGES_WRITE_GITHUB_TOKEN }}
|
password: ${{ secrets.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 }}
|
|
||||||
|
|
||||||
# Download the latest commit from the master branch
|
# Download the latest commit from the master branch
|
||||||
- uses: https://github.com/actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# Set up QEMU
|
# Set up QEMU
|
||||||
- id: qemu
|
- id: qemu
|
||||||
uses: https://github.com/docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
with:
|
with:
|
||||||
image: tonistiigi/binfmt:master
|
image: tonistiigi/binfmt:master
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
cache-image: false
|
cache-image: false
|
||||||
|
|
||||||
# Set up Buildx so we can build multi-arch images
|
# 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
|
# Install the latest version of ruff
|
||||||
- uses: https://github.com/astral-sh/ruff-action@v3
|
- uses: astral-sh/ruff-action@v3
|
||||||
with:
|
with:
|
||||||
version: "latest"
|
version: "latest"
|
||||||
|
|
||||||
|
|
@ -76,23 +68,22 @@ jobs:
|
||||||
|
|
||||||
# Extract metadata (tags, labels) from Git reference and GitHub events for Docker
|
# Extract metadata (tags, labels) from Git reference and GitHub events for Docker
|
||||||
- id: meta
|
- id: meta
|
||||||
uses: https://github.com/docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
env:
|
env:
|
||||||
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
|
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
ghcr.io/thelovinator1/discord-rss-bot
|
ghcr.io/thelovinator1/discord-rss-bot
|
||||||
git.lovinator.space/thelovinator/discord-rss-bot
|
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=latest,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=${{ gitea.ref == format('refs/heads/{0}', 'master') }}
|
type=raw,value=master,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
|
||||||
|
|
||||||
# Build and push the Docker image
|
# Build and push the Docker image
|
||||||
- uses: https://github.com/docker/build-push-action@v6
|
- uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: ${{ gitea.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
annotations: ${{ steps.meta.outputs.annotations }}
|
annotations: ${{ steps.meta.outputs.annotations }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue