chromart-gitea-actions/.gitea/workflows/docker-publish-private.yaml
Martin Dimitrov 43b5ba3e14
Some checks failed
Reload Act Runner Stack to clear cache for workflows / diff (push) Successful in 24s
Reload Act Runner Stack to clear cache for workflows / deploy-gitainer (push) Failing after 4s
Reload Act Runner Stack to clear cache for workflows / notify (push) Has been skipped
fix base url
2026-03-06 12:26:06 -08:00

48 lines
1.2 KiB
YAML

name: Docker Publish Private
on:
workflow_call:
inputs:
repository:
required: false
type: string
default: ${{ github.repository }}
ref:
required: false
type: string
default: ${{ github.ref }}
image_name:
required: true
type: string
file:
required: false
type: string
default: 'Dockerfile'
platforms:
required: false
type: string
default: 'linux/amd64'
secrets: []
jobs:
docker:
runs-on: ubuntu-22.04
steps:
- name: Checkout Code to Build
uses: actions/checkout@v4
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
token: ${{ github.token }}
- name: Setup Docker (QEMU, Buildx)
uses: https://gitea.chromart.cc/martin/chromart-gitea-actions/.gitea/actions/docker-setup@main
- name: Build and push Docker image
uses: https://gitea.chromart.cc/martin/chromart-gitea-actions/.gitea/actions/docker-build-push@main
with:
registry_image: 192.168.1.150:9120/${{ inputs.image_name }}
file: ${{ inputs.file }}
platforms: ${{ inputs.platforms }}
context: .