Skip to content

Commit b89f2b6

Browse files
committed
foo
1 parent 69e023a commit b89f2b6

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

.github/workflows/default_amd64_arm64.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
name: Default Build
22

33
on:
4-
workflow_call
4+
workflow_call:
5+
inputs:
6+
platforms:
7+
description: 'Target platforms (comma-separated, e.g. linux/amd64,linux/arm64)'
8+
required: false
9+
type: string
10+
default: linux/amd64,linux/arm64
511

612
jobs:
713
image_build:
@@ -88,7 +94,7 @@ jobs:
8894
- name: Set up QEMU
8995
uses: docker/setup-qemu-action@v2
9096
with:
91-
platforms: arm,arm64
97+
platforms: ${{ inputs.platforms }}
9298

9399
- name: Login to DockerHub
94100
if: github.event_name != 'pull_request'
@@ -112,7 +118,7 @@ jobs:
112118
builder: ${{ steps.buildx.outputs.name }}
113119
context: .
114120
file: ./${{ env.build_file }}
115-
platforms: linux/amd64,linux/arm64
121+
platforms: ${{ inputs.platforms }}
116122
push: true
117123
tags: ${{ steps.prep.outputs.container_images }}
118124

.github/workflows/main.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,25 @@ on:
77
description: 'Target platforms (comma-separated, e.g. linux/amd64,linux/arm64)'
88
required: false
99
type: string
10-
default: 'linux/amd64,linux/arm64'
11-
version:
12-
description: 'Image version tag (optional)'
13-
required: false
14-
type: string
15-
default: ''
10+
default: linux/amd64,linux/arm64
1611
secrets:
17-
docker_username:
12+
DOCKER_USERNAME:
13+
required: true
14+
DOCKER_PASSWORD:
1815
required: true
19-
docker_password:
16+
GITHUB_TOKEN:
2017
required: true
2118

2219
jobs:
23-
encrypt:
20+
prepare:
2421
uses: nfrastack/gha/.github/workflows/encrypt.yml@main
2522
secrets: inherit
26-
2723
build:
28-
needs: encrypt
29-
uses: nfrastack/gha/.github/workflows/build.yml@main
24+
needs: prepare
25+
uses: nfrastack/gha/.github/workflows/default_amd64_arm64.yml@main
3026
with:
3127
platforms: ${{ inputs.platforms }}
32-
version: ${{ inputs.version }}
3328
secrets: inherit
34-
3529
cleanup:
3630
needs: build
3731
uses: nfrastack/gha/.github/workflows/remove_artifacts.yml@main

0 commit comments

Comments
 (0)