bf52bc3079
build-and-push / docker (push) Has been cancelled
Features: feed CRUD, per-feed ntfy target (incl. private servers), Telegram/webhook channels, keyword filters, image attachments, per-feed intervals, OPML import/export, notification history & stats, users with roles, admin alerts, RU/EN i18n, light/dark theme, notification preview, history search, activity chart. Dockerized. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
# Optional Gitea Actions pipeline: build the Docker image and push it to the
|
|
# Gitea Container Registry on every push to the main branch.
|
|
#
|
|
# Requirements:
|
|
# * A Gitea Actions runner (act_runner) registered with this instance.
|
|
# * The registry host (e.g. 192.168.1.171:3000) added as an *insecure registry*
|
|
# in the runner's Docker daemon (/etc/docker/daemon.json), because it is
|
|
# served over plain HTTP on a custom port:
|
|
# { "insecure-registries": ["192.168.1.171:3000"] }
|
|
#
|
|
# After a successful run the image is available as:
|
|
# 192.168.1.171:3000/<owner>/rss-ntfy:latest
|
|
name: build-and-push
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
driver-opts: network=host
|
|
|
|
- name: Log in to Gitea registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ${{ vars.REGISTRY_HOST }}
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: |
|
|
${{ vars.REGISTRY_HOST }}/${{ github.repository }}:latest
|
|
${{ vars.REGISTRY_HOST }}/${{ github.repository }}:${{ github.sha }}
|