fix(ci): manually build and push images

This commit is contained in:
Luke Tainton 2025-01-02 19:15:50 +00:00
parent 523648ab73
commit 26e51e23b8
Signed by: luke
SSH Key Fingerprint: SHA256:D34npKT7UaiT/7gULqu7EPSLWWVAjTjXf4kKfJ/fQBo

View File

@ -151,22 +151,18 @@ jobs:
- name: Build images
run: |
readarray -td, anno < <( echo "${{ steps.meta.outputs.annotations }}" )
readarray -td, lbls < <( echo "${{ steps.meta.outputs.labels }}" )
readarray -td, tags < <( echo "${{ steps.meta.outputs.tags }}" )
dkrannotations=""
dkrlabels=""
dkrtags=""
for i in "${anno[@]}"; do dkrannotations="$dkrannotations --annotation $i"; done
for i in "${lbls[@]}"; do dkrlabels="$dkrlabels --label $i"; done
for i in "${tags[@]}"; do dkrtags="$dkrtags --tag $i"; done
for i in "${{ steps.meta.outputs.annotations }}"; do dkrannotations="$dkrannotations --annotation $i"; done
for i in "${{ steps.meta.outputs.labels }}"; do dkrlabels="$dkrlabels --label $i"; done
for i in "${{ steps.meta.outputs.tags }}"; do dkrtags="$dkrtags --tag $i"; done
bldcmd="docker buildx build $dkrannotations $dkrlabels $dkrtags ."
echo "$bldcmd"
sh -c "$bldcmd"
unset anno dkrannotations lbls dkrlabels tags dkrtags bldcmd
echo $bldcmd
unset dkrannotations dkrlabels dkrtags bldcmd
- name: Push images
run: |
readarray -td, tags < <( echo ${{ steps.meta.outputs.tags }} )
for i in "${tags[@]}"; do docker push "$i"; done
for i in "${{ steps.meta.outputs.tags }}"; do docker push "$i"; done
unset tags