fix(ci): manually build and push images
This commit is contained in:
parent
523648ab73
commit
26e51e23b8
@ -151,22 +151,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Build images
|
- name: Build images
|
||||||
run: |
|
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=""
|
dkrannotations=""
|
||||||
dkrlabels=""
|
dkrlabels=""
|
||||||
dkrtags=""
|
dkrtags=""
|
||||||
for i in "${anno[@]}"; do dkrannotations="$dkrannotations --annotation $i"; done
|
for i in "${{ steps.meta.outputs.annotations }}"; do dkrannotations="$dkrannotations --annotation $i"; done
|
||||||
for i in "${lbls[@]}"; do dkrlabels="$dkrlabels --label $i"; done
|
for i in "${{ steps.meta.outputs.labels }}"; do dkrlabels="$dkrlabels --label $i"; done
|
||||||
for i in "${tags[@]}"; do dkrtags="$dkrtags --tag $i"; done
|
for i in "${{ steps.meta.outputs.tags }}"; do dkrtags="$dkrtags --tag $i"; done
|
||||||
bldcmd="docker buildx build $dkrannotations $dkrlabels $dkrtags ."
|
bldcmd="docker buildx build $dkrannotations $dkrlabels $dkrtags ."
|
||||||
echo "$bldcmd"
|
echo $bldcmd
|
||||||
sh -c "$bldcmd"
|
unset dkrannotations dkrlabels dkrtags bldcmd
|
||||||
unset anno dkrannotations lbls dkrlabels tags dkrtags bldcmd
|
|
||||||
|
|
||||||
- name: Push images
|
- name: Push images
|
||||||
run: |
|
run: |
|
||||||
readarray -td, tags < <( echo ${{ steps.meta.outputs.tags }} )
|
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
|
unset tags
|
||||||
|
Loading…
Reference in New Issue
Block a user