Compare commits
12 Commits
17618483c0
...
c680c10d2d
Author | SHA1 | Date | |
---|---|---|---|
c680c10d2d | |||
70e3427b38 | |||
d7884e9149 | |||
f256e6bd1a | |||
9f9f03b521 | |||
a4c1ae8222 | |||
4db2dd8ea5 | |||
f68b5e29d1 | |||
26e51e23b8 | |||
523648ab73 | |||
abb2b3202c | |||
9375ae10c3 |
@ -140,11 +140,43 @@ jobs:
|
|||||||
${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}
|
${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}
|
||||||
tags: type=semver,pattern=v{{version}},value=${{ needs.create_release.outputs.release_name }}
|
tags: type=semver,pattern=v{{version}},value=${{ needs.create_release.outputs.release_name }}
|
||||||
|
|
||||||
- name: Build and push images
|
- name: Print metadata
|
||||||
uses: docker/build-push-action@v5
|
run: |
|
||||||
with:
|
printf "Annotations:\n${{ steps.meta.outputs.annotations }}"
|
||||||
context: .
|
echo ""
|
||||||
push: true
|
printf "Labels:\n${{ steps.meta.outputs.labels }}"
|
||||||
annotations: ${{ steps.meta.outputs.annotations }}
|
echo ""
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
printf "Tags:\n${{ steps.meta.outputs.tags }}"
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
|
||||||
|
# - name: Build images
|
||||||
|
# uses: docker/build-push-action@v5
|
||||||
|
# with:
|
||||||
|
# context: .
|
||||||
|
# push: false
|
||||||
|
# annotations: ${{ steps.meta.outputs.annotations }}
|
||||||
|
# labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
# tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|
||||||
|
- name: Build images
|
||||||
|
run: |
|
||||||
|
bldcmd="docker buildx build ."
|
||||||
|
strtags="${{ steps.meta.outputs.tags }}"
|
||||||
|
strlabels="${{ steps.meta.outputs.labels }}"
|
||||||
|
strannotations="${{ steps.meta.outputs.annotations }}"
|
||||||
|
readarray -t tags <<<"$strtags"
|
||||||
|
readarray -t labels <<<"$strlabels"
|
||||||
|
readarray -t annotations <<<"$strannotations"
|
||||||
|
for element in "${tags[@]}"; do bldcmd="$bldcmd --tag \"$element\""; done
|
||||||
|
for element in "${labels[@]}"; do bldcmd="$bldcmd --label \"$element\""; done
|
||||||
|
for element in "${annotations[@]}"; do bldcmd="$bldcmd --annotation \"$element\""; done
|
||||||
|
bldcmd="$bldcmd ${{ gitea.workspace }}"
|
||||||
|
echo "$bldcmd"
|
||||||
|
echo ""
|
||||||
|
sh -c "$bldcmd"
|
||||||
|
|
||||||
|
- name: Push images
|
||||||
|
run: |
|
||||||
|
strtags="${{ steps.meta.outputs.tags }}"
|
||||||
|
readarray -t lines <<<"$strtags"
|
||||||
|
for element in "${lines[@]}"; do docker push "$element"; done
|
||||||
|
unset strtags lines
|
||||||
|
Loading…
x
Reference in New Issue
Block a user