Files
n8n-ffmpeg-proxy/.gitea/workflows/docker_build.yml
drholy 0678a1bfb6
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 22s
fix docker build flows
2026-01-25 10:41:33 +07:00

61 lines
1.9 KiB
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
env:
REGISTRY_HOST: https://git.home
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up QEMU (for multi-arch, optional)
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# - name: Log in to Gitea Container Registry
# run: |
# echo "${{ secrets.GITEATOKEN }}" | docker login "${{ env.REGISTRY_HOST }}" -u "${{ github.actor }}" --password-stdin
# - name: Extract metadata (tags, labels)
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: |
# ${{ env.REGISTRY_HOST }}/${{ github.repository }}
# tags: |
# type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
# type=sha,format=short,prefix=
# type=ref,event=tag
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY_HOST }}
username: ${{ gitea.actor }}
password: ${{ secrets.GIT_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64
tags: ${{ env.REGISTRY_HOST }}/${{ gitea.actor }}/n8n-ffmpeg-proxy:${{ gitea.sha }}
build-args: |
USER_ID=1000
GROUP_ID=1000
#cache-from: type=registry,ref=drholy/n8n-ffmpeg-proxy:buildcache
#cache-to: type=registry,ref=drholy/n8n-ffmpeg-proxy:buildcache,mode=max
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}