Skip to content

Commit f7514ed

Browse files
authored
Update create-dockerfiles.yml
1 parent ae93eb5 commit f7514ed

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

.github/workflows/create-dockerfiles.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
release:
66
types: [released]
7-
7+
88
jobs:
99
latest:
1010
runs-on: ubuntu-22.04
@@ -48,33 +48,32 @@ jobs:
4848
4949
- name: Build Project
5050
run: mvn install -DskipTests=true
51-
52-
- name: Set up QEMU
53-
uses: docker/setup-qemu-action@v3
54-
55-
- name: Set up Docker Buildx
56-
uses: docker/setup-buildx-action@v2
57-
58-
- name: Build Docker Images
59-
run: |
60-
mvn docker:build -pl agent-module/agent
61-
mvn docker:build -pl hbase/hbase-docker
62-
mvn jib:build -pl collector-starter
63-
mvn jib:build -pl web-starter
64-
mvn jib:build -pl batch
65-
mvn jib:build -pl collector
66-
mvn jib:build -pl web
67-
docker images
6851

6952
- name: Log in to Docker Hub
7053
uses: docker/login-action@v3
7154
with:
7255
username: ${{ secrets.docker_username }}
7356
password: ${{ secrets.docker_token }}
7457

58+
- name: Build Docker Images
59+
run: |
60+
mvn docker:build -pl agent-module/agent
61+
mvn docker:build -pl flink
62+
mvn docker:build -pl hbase/hbase-docker
63+
# Set up Buildx for multi-arch Spring Boot builds
64+
docker buildx create --use --name multiarch-builder || true
65+
docker buildx inspect --bootstrap
66+
mvn -pl collector-starter clean package spring-boot:build-image -DskipTests=true -Dspring-boot.build-image.platform=linux/amd64,linux/arm64
67+
mvn -pl web-starter clean package spring-boot:build-image -DskipTests=true -Dspring-boot.build-image.platform=linux/amd64,linux/arm64
68+
mvn -pl batch clean package spring-boot:build-image -DskipTests=true -Dspring-boot.build-image.platform=linux/amd64,linux/arm64
69+
mvn -pl collector clean package spring-boot:build-image -DskipTests=true -Dspring-boot.build-image.platform=linux/amd64,linux/arm64
70+
mvn -pl web clean package spring-boot:build-image -DskipTests=true -Dspring-boot.build-image.platform=linux/amd64,linux/arm64
71+
docker images
72+
7573
- name: Push to Docker Hub
7674
run: |
7775
docker push --all-tags ${{ secrets.docker_username }}/pinpoint-agent
76+
docker push --all-tags ${{ secrets.docker_username }}/pinpoint-flink
7877
docker push --all-tags ${{ secrets.docker_username }}/pinpoint-hbase
7978
docker push --all-tags ${{ secrets.docker_username }}/pinpoint-batch
8079
docker push --all-tags ${{ secrets.docker_username }}/pinpoint-collector

0 commit comments

Comments
 (0)