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
|
- 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
|
||||||
|
|||||||
Reference in New Issue
Block a user