diff --git a/.github/actions/build-steps/action.yml b/.github/actions/build-steps/action.yml index 2057d06f5..8cd5c2f1d 100644 --- a/.github/actions/build-steps/action.yml +++ b/.github/actions/build-steps/action.yml @@ -6,6 +6,9 @@ on: platform: required: true type: string + platform_pair: + required: true + type: string registry_image: required: true type: string @@ -23,11 +26,6 @@ jobs: build: runs-on: ${{ inputs.runs_on }} steps: - - - name: Prepare Platform Environment - run: | - platform=${{ inputs.platform }} - echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV - name: Checkout uses: actions/checkout@v4 @@ -72,7 +70,7 @@ jobs: name: Upload digest uses: actions/upload-artifact@v4 with: - name: digests-${{ env.PLATFORM_PAIR }} + name: digests-${{ inputs.platform_pair }} path: /tmp/digests/* if-no-files-found: error retention-days: 1 diff --git a/.github/workflows/push-image.yml b/.github/workflows/push-image.yml index 7312dde76..5ac10bc97 100644 --- a/.github/workflows/push-image.yml +++ b/.github/workflows/push-image.yml @@ -23,6 +23,7 @@ jobs: secrets: inherit with: platform: linux/amd64 + platform_pair: linux_amd64 registry_image: ${{ env.REGISTRY_IMAGE }} runtime: ${{ github.event.inputs.runtime }} buildpack: ${{ github.event.inputs.buildpack }} @@ -33,6 +34,7 @@ jobs: secrets: inherit with: platform: linux/arm64 + platform_pair: linux_arm64 registry_image: ${{ env.REGISTRY_IMAGE }} runtime: ${{ github.event.inputs.runtime }} buildpack: ${{ github.event.inputs.buildpack }}