fix(ci): manually build and push images
This commit is contained in:
parent
523648ab73
commit
26e51e23b8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user