modifica pipeline per eseguire build attraverso jib e demone docker
Some checks failed
Build and Publish / build (push) Failing after 3m13s
Some checks failed
Build and Publish / build (push) Failing after 3m13s
locale
This commit is contained in:
@@ -23,12 +23,9 @@ jobs:
|
||||
- name: Build immagine Docker
|
||||
run: |
|
||||
IMAGE_NAME="${{ vars.REGISTRY_URL }}/${{ github.repository }}"
|
||||
docker build \
|
||||
--target production \
|
||||
-t ${IMAGE_NAME}:${{ github.sha }} \
|
||||
-t ${IMAGE_NAME}:${{ github.ref_name}} \
|
||||
-t ${IMAGE_NAME}:latest \
|
||||
.
|
||||
./gradlew bootJar jibDockerBuild -x test -Pprod --image=${IMAGE_NAME}:${{ github.sha }}
|
||||
docker tag ${IMAGE_NAME}:${{ github.sha }} ${IMAGE_NAME}:${{ github.ref_name}}
|
||||
docker tag ${IMAGE_NAME}:${{ github.sha }} ${IMAGE_NAME}:latest
|
||||
echo "IMAGE_NAME=${IMAGE_NAME}" >> $GITHUB_ENV
|
||||
|
||||
- name: Push immagine Docker
|
||||
|
||||
Reference in New Issue
Block a user