Repository navigation
57 lines (54 loc) · 1.54 KB
/
Copy pathdocker-ci.yml
File metadata and controls
57 lines (54 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: CI
on:
workflow_dispatch:
inputs:
REGISTRY:
description: Target registry to push images
required: true
type: string
default: ghcr.io
NAMESPACE:
description: Target namespace to the given registry
required: true
type: string
default: falltrades/cloud-example
IMAGES:
description: Comma separated list of image to build (leave empty to build all)
required: false
type: string
BUILD_AMD64:
description: Build for amd64
required: true
type: boolean
default: true
BUILD_ARM64:
description: Build for arm64
required: true
type: boolean
default: true
USE_QEMU:
description: Use QEMU for non amd64 builds
required: true
type: boolean
default: false
jobs:
build-amd64:
uses: ./.github/workflows/docker-build.yml
if: ${{ inputs.BUILD_AMD64 }}
with:
REGISTRY: ${{ inputs.REGISTRY }}
NAMESPACE: ${{ inputs.NAMESPACE }}
IMAGES: ${{ inputs.IMAGES }}
BUILD_AMD64: ${{ inputs.BUILD_AMD64 == true }}
BUILD_ARM64: false
USE_QEMU: ${{ inputs.USE_QEMU == true }}
build-arm64:
uses: ./.github/workflows/docker-build.yml
if: ${{ inputs.BUILD_ARM64 }}
with:
REGISTRY: ${{ inputs.REGISTRY }}
NAMESPACE: ${{ inputs.NAMESPACE }}
IMAGES: ${{ inputs.IMAGES }}
BUILD_AMD64: false
BUILD_ARM64: ${{ inputs.BUILD_ARM64 == true }}
USE_QEMU: ${{ inputs.USE_QEMU == true }}