mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
fix(security): template in .github/workflows/build-and-dockerize.yaml (#7860)
Co-authored-by: aikido-autofix[bot] <119856028+aikido-autofix[bot]@users.noreply.github.com>
This commit is contained in:
parent
409fe5fe93
commit
0cadd16911
1 changed files with 7 additions and 2 deletions
9
.github/workflows/build-and-dockerize.yaml
vendored
9
.github/workflows/build-and-dockerize.yaml
vendored
|
|
@ -220,13 +220,18 @@ jobs:
|
|||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: 'publish docker multiarch manifest (tag: ${{ inputs.imageTag }})'
|
||||
env:
|
||||
TARGETS: ${{ inputs.targets }}
|
||||
REGISTRY: ${{ inputs.registry }}
|
||||
IMAGE_NAME: ${{ inputs.imageName }}
|
||||
IMAGE_TAG: ${{ inputs.imageTag }}
|
||||
run: |
|
||||
targets=$(docker buildx bake -f docker/docker.hcl --print "${{ inputs.targets }}" | jq -r '.group."${{ inputs.targets }}".targets[]')
|
||||
targets=$(docker buildx bake -f docker/docker.hcl --print "$TARGETS" | jq -r '.group."'"$TARGETS"'".targets[]')
|
||||
|
||||
for target in $targets
|
||||
do
|
||||
echo "publishing multi-arch manifest for $target"
|
||||
image_name="${{ inputs.registry }}/${{ inputs.imageName }}/$target:${{ inputs.imageTag }}"
|
||||
image_name="$REGISTRY/$IMAGE_NAME/$target:$IMAGE_TAG"
|
||||
echo "image name: $image_name"
|
||||
|
||||
docker manifest create $image_name --amend "$image_name-arm64" --amend "$image_name-amd64"
|
||||
|
|
|
|||
Loading…
Reference in a new issue