mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-02 22:39:36 +00:00
30 lines
1.1 KiB
YAML
30 lines
1.1 KiB
YAML
name: docker-dryrun
|
|
description: Composite action that performs the container build steps for a single platform.
|
|
|
|
inputs:
|
|
platform:
|
|
description: "The target platform: linux/amd64, linux/arm64, linux/riscv64."
|
|
required: true
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
|
|
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
|
|
- name: Build regular image
|
|
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
|
|
with:
|
|
context: .
|
|
platforms: ${{ inputs.platform }}
|
|
push: false
|
|
file: Dockerfile
|
|
cache-from: type=registry,ref=ghcr.io/go-gitea/gitea:buildcache-rootful
|
|
- name: Build rootless image
|
|
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
|
|
with:
|
|
context: .
|
|
platforms: ${{ inputs.platform }}
|
|
push: false
|
|
file: Dockerfile.rootless
|
|
cache-from: type=registry,ref=ghcr.io/go-gitea/gitea:buildcache-rootless
|