We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3c293f commit c30f975Copy full SHA for c30f975
.github/workflows/docker-pipeline.yaml
@@ -41,7 +41,20 @@ jobs:
41
42
- name: Setup docker buildx
43
uses: docker/setup-buildx-action@v2
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
58
- name: Log in to DockerHub
59
uses: docker/login-action@v2
60
with:
0 commit comments