modifica pipeline per eseguire build attraverso jib e demone docker
Some checks failed
Build and Publish / build (push) Failing after 3m13s

locale
This commit is contained in:
2026-01-30 09:50:46 +01:00
parent c64f7b3ca4
commit c14436e207

View File

@@ -23,12 +23,9 @@ jobs:
- name: Build immagine Docker - name: Build immagine Docker
run: | run: |
IMAGE_NAME="${{ vars.REGISTRY_URL }}/${{ github.repository }}" IMAGE_NAME="${{ vars.REGISTRY_URL }}/${{ github.repository }}"
docker build \ ./gradlew bootJar jibDockerBuild -x test -Pprod --image=${IMAGE_NAME}:${{ github.sha }}
--target production \ docker tag ${IMAGE_NAME}:${{ github.sha }} ${IMAGE_NAME}:${{ github.ref_name}}
-t ${IMAGE_NAME}:${{ github.sha }} \ docker tag ${IMAGE_NAME}:${{ github.sha }} ${IMAGE_NAME}:latest
-t ${IMAGE_NAME}:${{ github.ref_name}} \
-t ${IMAGE_NAME}:latest \
.
echo "IMAGE_NAME=${IMAGE_NAME}" >> $GITHUB_ENV echo "IMAGE_NAME=${IMAGE_NAME}" >> $GITHUB_ENV
- name: Push immagine Docker - name: Push immagine Docker