mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 00:22:14 +01:00
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
on:
|
|
workflow_call:
|
|
inputs:
|
|
runs_on:
|
|
type: string
|
|
required: true
|
|
platform:
|
|
type: string
|
|
required: true
|
|
gotenberg_version:
|
|
type: string
|
|
required: true
|
|
alternate_repository:
|
|
type: string
|
|
default: ''
|
|
outputs:
|
|
tags:
|
|
value: ${{ jobs.build_push.outputs.tags }}
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build_push:
|
|
runs-on: ${{ inputs.runs_on }}
|
|
outputs:
|
|
tags: ${{ steps.build_push.outputs.tags }}
|
|
steps:
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Log in to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Build and push ${{ inputs.platform }}
|
|
id: build_push
|
|
uses: gotenberg/gotenberg-release-action/actions/build-push@main
|
|
with:
|
|
version: ${{ inputs.gotenberg_version }}
|
|
platform: ${{ inputs.platform }}
|
|
alternate_repository: ${{ inputs.alternate_repository }}
|