fix docker build-args

env context is not accessible from job.*.strategy. since it's in the
environment, just tell docker to use the environment variable[1]

[1]: https://docs.docker.com/reference/cli/docker/buildx/build/#build-arg
This commit is contained in:
Michael Yang 2025-01-31 14:25:49 -08:00
parent 39fd89308c
commit 475333d533

View File

@ -312,16 +312,18 @@ jobs:
- flavor: 'latest=false'
platforms: linux/amd64,linux/arm64
build-args: |
CGO_CFLAGS=${{ env.CGO_CFLAGS }}
CGO_CXXFLAGS=${{ env.CGO_CXXFLAGS }}
GOFLAGS=${{ needs.setup-environment.outputs.GOFLAGS }}
CGO_CFLAGS
CGO_CXXFLAGS
GOFLAGS
- flavor: 'latest=false,suffix=rocm'
platforms: linux/amd64
build-args: |
CGO_CFLAGS=${{ env.CGO_CFLAGS }}
CGO_CXXFLAGS=${{ env.CGO_CXXFLAGS }}
CGO_CFLAGS
CGO_CXXFLAGS
GOFLAGS
FLAVOR=rocm
GOFLAGS=${{ needs.setup-environment.outputs.GOFLAGS }}
env:
GOFLAGS: ${{ needs.setup-environment.outputs.GOFLAGS }}
runs-on: linux
environment: release
needs: setup-environment