diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index fd70093..5c2c44b 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -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