Skip to content

Commit c30f975

Browse files
committed
dec-18 lint and prepare multi arch for docker file
1 parent f3c293f commit c30f975

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/docker-pipeline.yaml

+14-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,20 @@ jobs:
4141

4242
- name: Setup docker buildx
4343
uses: docker/setup-buildx-action@v2
44-
44+
45+
- name: Build Multi-Arch Images
46+
run: |
47+
find ./apps -name "Dockerfile" | while read dockerfile; do
48+
app_dir=$(dirname "$dockerfile")
49+
app_name=$(basename "$app_dir")
50+
echo "Building image for $app_name from $app_dir"
51+
docker buildx build \
52+
--platform linux/amd64,linux/arm64 \
53+
--tag ${{ secrets.DOCKERHUBUSERNAME }}/$app_name:latest \
54+
--load \
55+
"$app_dir"
56+
done
57+
4558
- name: Log in to DockerHub
4659
uses: docker/login-action@v2
4760
with:

0 commit comments

Comments
 (0)