@@ -95,21 +95,28 @@ jobs:
9595 username : ${{ secrets.docker_username }}
9696 password : ${{ secrets.docker_token }}
9797
98- - name : Build Docker Images
98+ - name : Build And Push Collector Images
9999 run : |
100100 # Set up Buildx for multi-arch Spring Boot builds
101101 docker buildx create --use --name multiarch-builder || true
102102 docker buildx inspect --bootstrap
103103 mvn -pl collector clean package spring-boot:build-image -DskipTests=true -Dspring-boot.build-image.platform=linux/amd64,linux/arm64
104104 mvn -pl collector-starter clean package spring-boot:build-image -DskipTests=true -Dspring-boot.build-image.platform=linux/amd64,linux/arm64
105+ docker images
106+ docker push --all-tags ${{ secrets.docker_username }}/pinpoint-collector
107+
108+ - name : Build And Push Web Images
109+ run : |
110+ docker system prune -af
105111 mvn -pl web clean package spring-boot:build-image -DskipTests=true -Dspring-boot.build-image.platform=linux/amd64,linux/arm64
106112 mvn -pl web-starter clean package spring-boot:build-image -DskipTests=true -Dspring-boot.build-image.platform=linux/amd64,linux/arm64
107- mvn -pl batch clean package spring-boot:build-image -DskipTests=true -Dspring-boot.build-image.platform=linux/amd64,linux/arm64
108113 docker images
109-
110- - name : Push to Docker Hub
114+ docker push --all-tags ${{ secrets.docker_username }}/pinpoint-web
115+
116+ - name : Build And Push Batch Image
111117 run : |
118+ docker system prune -af
119+ mvn -pl batch clean package spring-boot:build-image -DskipTests=true -Dspring-boot.build-image.platform=linux/amd64,linux/arm64
120+ docker images
112121 docker push --all-tags ${{ secrets.docker_username }}/pinpoint-batch
113- docker push --all-tags ${{ secrets.docker_username }}/pinpoint-collector
114- docker push --all-tags ${{ secrets.docker_username }}/pinpoint-web
115122
0 commit comments