Skip to content

Commit 286d284

Browse files
fix: delimiter inconsistency for BATCH_PLATFORMS in publish workflow
1 parent f32f599 commit 286d284

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/publish-provider-packages.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ on:
1515
platform:
1616
type: choice
1717
description: "Platform string to use while building and publishing the packages (e.g. linux_amd64 linux_arm64)"
18-
default: 'linux_amd64'
19-
options:
18+
default: linux_amd64 linux_arm64
19+
options:
20+
- linux_amd64 linux_arm64
2021
- linux_amd64
2122
- linux_arm64
2223
required: true
2324
go-version:
2425
description: 'Go version to use if building needs to be done'
25-
default: '1.24'
26+
default: '1.25'
2627
required: false
2728
size:
2829
description: "Number of smaller provider packages to build and push with each build job"
@@ -117,12 +118,12 @@ jobs:
117118
run: |
118119
go install golang.org/x/tools/cmd/goimports@latest
119120
make generate
120-
make SUBPACKAGES="${{ inputs.subpackages }}" PLATFORMS=${{ inputs.platform }} build
121+
make SUBPACKAGES="${{ inputs.subpackages }}" PLATFORMS="${{ inputs.platform }}" build
121122
env:
122123
# We're using docker buildx, which doesn't actually load the images it
123124
# builds by default. Specifying --load does so.
124125
BUILD_ARGS: "--load"
125126

126127
- name: Publish Artifacts
127128
run: |
128-
make SUBPACKAGES_FOR_BATCH="${{ inputs.subpackages }}" XPKG_REG_ORGS="${{ env.CROSSPLANE_REGORG }}" VERSION=${{ inputs.version }} BATCH_PLATFORMS=${{ inputs.platform }} publish-subpackages
129+
make SUBPACKAGES_FOR_BATCH="${{ inputs.subpackages }}" XPKG_REG_ORGS="${{ env.CROSSPLANE_REGORG }}" VERSION=${{ inputs.version }} BATCH_PLATFORMS="$(echo ${{ inputs.platform }} | tr ' ' ',')" publish-subpackages

0 commit comments

Comments
 (0)