Actualiser .gitea/workflows/build-push.yaml
This commit is contained in:
@@ -57,6 +57,10 @@ jobs:
|
||||
- name: Build and tag image
|
||||
run: |
|
||||
podman build -t ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAGS }} .
|
||||
for tag in "${IMAGE_TAGS[@]:1}"; do
|
||||
podman tag ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${IMAGE_TAGS[0]} \
|
||||
${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${tag}
|
||||
done
|
||||
|
||||
- name: Canceled building
|
||||
if: cancelled()
|
||||
@@ -78,8 +82,9 @@ jobs:
|
||||
|
||||
- name: Push image to registry
|
||||
run: |
|
||||
podman push ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAGS }}
|
||||
|
||||
for tag in ${{ env.IMAGE_TAGS }}; do
|
||||
podman push ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:$tag
|
||||
done
|
||||
|
||||
- name: Push image failed
|
||||
if: failure()
|
||||
|
||||
Reference in New Issue
Block a user