Skip to content

Commit 1449ee6

Browse files
authored
Refactor Docker image build and push steps
Updated workflow to build and push Docker images for collector, web, and batch services with clearer naming.
1 parent c4bafc4 commit 1449ee6

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/create-dockerfiles.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)