Actualiser .gitea/workflows/build-push.yaml
This commit is contained in:
@@ -58,9 +58,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "IMAGE_TAGS=${{ env.IMAGE_TAGS }} pmo-${{ env.SOFTVERSION }}" >> $GITEA_ENV
|
echo "IMAGE_TAGS=${{ env.IMAGE_TAGS }} pmo-${{ env.SOFTVERSION }}" >> $GITEA_ENV
|
||||||
|
|
||||||
- name: Podman login
|
|
||||||
uses: https://gargoton.petite-maison-orange.fr/pmo-actions/podman-login@main
|
|
||||||
|
|
||||||
- name: Build and tag image
|
- name: Build and tag image
|
||||||
uses: https://gargoton.petite-maison-orange.fr/pmo-actions/build-image@main
|
uses: https://gargoton.petite-maison-orange.fr/pmo-actions/build-image@main
|
||||||
with:
|
with:
|
||||||
@@ -95,11 +92,11 @@ jobs:
|
|||||||
check_message: 'Docker image for $(cat ${{ env.RELEASE_FILE }}) built and tagged'
|
check_message: 'Docker image for $(cat ${{ env.RELEASE_FILE }}) built and tagged'
|
||||||
|
|
||||||
- name: Push image to registry
|
- name: Push image to registry
|
||||||
run: |
|
uses: https://gargoton.petite-maison-orange.fr/pmo-actions/push-image@main
|
||||||
tags=(${{ env.IMAGE_TAGS }})
|
with:
|
||||||
for tag in "${tags[@]}" ; do
|
registry_login: true
|
||||||
podman push ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:$tag
|
image_name: '${{ env.IMAGE_NAME }}'
|
||||||
done
|
image_tags: '${{ env.IMAGE_TAGS }}'
|
||||||
|
|
||||||
- name: Push image failed
|
- name: Push image failed
|
||||||
if: failure()
|
if: failure()
|
||||||
|
|||||||
Reference in New Issue
Block a user