Actualiser .gitea/workflows/build-push.yaml
Some checks failed
Check BlueSky Crossposter version / check-version (push) Successful in 16s
Build and Push Docker Image / build (push) Failing after 1m27s

This commit is contained in:
2025-04-14 11:20:40 +02:00
parent 0a6253d4ef
commit 8abc1d093f

View File

@@ -62,20 +62,10 @@ jobs:
uses: https://gargoton.petite-maison-orange.fr/pmo-actions/podman-login@main uses: https://gargoton.petite-maison-orange.fr/pmo-actions/podman-login@main
- name: Build and tag image - name: Build and tag image
run: | uses: https://gargoton.petite-maison-orange.fr/pmo-actions/build-image@main
tags=(${{ env.IMAGE_TAGS }}) with:
sep="" image_name: '${{ env.IMAGE_NAME }}'
if [[ -n "${tags[0]}" ]] ; then image_tags: '${{ env.IMAGE_TAGS }}'
sep=":"
fi
image=${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}${sep}${tags[0]}
docker build -t ${image} .
docker save ${image} -o image.tar
podman load -i image.tar
for tag in "${tags[@]:1}" ; do
podman tag ${image} \
${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${tag}
done
- name: Canceled building - name: Canceled building
if: cancelled() if: cancelled()