Actualiser .gitea/workflows/build-push.yaml
This commit is contained in:
@@ -62,20 +62,10 @@ jobs:
|
||||
uses: https://gargoton.petite-maison-orange.fr/pmo-actions/podman-login@main
|
||||
|
||||
- name: Build and tag image
|
||||
run: |
|
||||
tags=(${{ env.IMAGE_TAGS }})
|
||||
sep=""
|
||||
if [[ -n "${tags[0]}" ]] ; then
|
||||
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
|
||||
uses: https://gargoton.petite-maison-orange.fr/pmo-actions/build-image@main
|
||||
with:
|
||||
image_name: '${{ env.IMAGE_NAME }}'
|
||||
image_tags: '${{ env.IMAGE_TAGS }}'
|
||||
|
||||
- name: Canceled building
|
||||
if: cancelled()
|
||||
|
||||
Reference in New Issue
Block a user