Files
n8n/.gitea/workflows/patch.yml
2025-03-12 16:59:21 +08:00

35 lines
922 B
YAML

name: Patch
on:
workflow_dispatch:
inputs:
tag:
description: "Docker tag"
required: true
default: "latest"
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
registry: git.yoshino-s.xyz
username: ${{ gitea.repository_owner }}
password: ${{ secrets.PACKAGES_PASSWORD }}
- name: Replace tag
run: |
sed -i "s/latest/${{ gitea.event.inputs.tag }}/g" Dockerfile
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: git.yoshino-s.xyz/${{ gitea.repository }}:${{ gitea.event.inputs.tag }}