mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-12-24 13:38:11 +08:00
ci: fix static binary copy (#451)
* ci: fix static binary copy * Update static.yaml Co-authored-by: Rob Landers <landers.robert@gmail.com> * fix * fix * fix --------- Co-authored-by: Rob Landers <landers.robert@gmail.com>
This commit is contained in:
8
.github/workflows/static.yaml
vendored
8
.github/workflows/static.yaml
vendored
@@ -141,11 +141,11 @@ jobs:
|
||||
name: Copy binary
|
||||
if: ${{ !fromJson(needs.prepare.outputs.push) }}
|
||||
run: |
|
||||
image=$(jq -r '."static-builder"."containerimage.config.digest"' <<< "${METADATA}")
|
||||
container=$(docker create --platform=${{ matrix.platform }} --name static-builder "${image}")
|
||||
docker cp "${container}:/go/src/app/dist/${BINARY}" "${BINARY}"
|
||||
digest=$(jq -r '."static-builder"."containerimage.config.digest"' <<< "${METADATA}")
|
||||
docker create --platform=${{ matrix.platform }} --name static-builder "${digest}"
|
||||
docker cp "static-builder:/go/src/app/dist/${BINARY}" "${BINARY}"
|
||||
env:
|
||||
METADATA: ${{ needs.prepare.outputs.metadata }}
|
||||
METADATA: ${{ steps.build.outputs.metadata }}
|
||||
BINARY: frankenphp-linux-${{ matrix.platform == 'linux/amd64' && 'x86_64' || 'aarch64' }}
|
||||
-
|
||||
name: Upload artifact
|
||||
|
||||
Reference in New Issue
Block a user