File tree Expand file tree Collapse file tree 1 file changed +26
-4
lines changed Expand file tree Collapse file tree 1 file changed +26
-4
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches : ["main"]
66
7+ env :
8+ RAILPACK_VERSION : " 0.4.0"
9+
710jobs :
8- build :
11+ build-arm :
12+ runs-on : ubuntu-24.04-arm
13+ steps :
14+ - name : Set up Docker Buildx
15+ uses : docker/setup-buildx-action@v3
16+
17+ - name : Build and push multi-arch Docker image
18+ uses : docker/build-push-action@v6
19+ with :
20+ build-args : |
21+ RAILPACK_VERSION=${{ env.RAILPACK_VERSION }}
22+ file : Dockerfile
23+ platforms : linux/arm64
24+ push : false
25+ cache-from : type=gha,scope=${{ github.workflow }}
26+ cache-to : type=gha,scope=${{ github.workflow }},mode=max
27+
28+ build-push :
29+ needs : build-arm
930 env :
1031 GCP_PROJECT : defang-io
1132 GCP_REGION : us-central1
4061 with :
4162 registry-type : public
4263
43- - name : Set up QEMU
44- uses : docker/setup-qemu-action@v3
64+ # - name: Set up QEMU
65+ # uses: docker/setup-qemu-action@v3
4566
4667 - name : Set up Docker Buildx
4768 uses : docker/setup-buildx-action@v3
@@ -67,13 +88,14 @@ jobs:
6788 with :
6889 context : .
6990 build-args : |
70- RAILPACK_VERSION=0.4.0
91+ RAILPACK_VERSION=${{ env.RAILPACK_VERSION }}
7192 file : Dockerfile
7293 platforms : linux/amd64
7394 # platforms: linux/amd64,linux/arm64
7495 push : true
7596 tags : |
7697 defangio/railpack-builder:${{ env.IMAGE_TAG }}
98+ ${{ env.GCP_REGION }}-docker.pkg.dev/defang-io/public/railpack-builder:${{ env.IMAGE_TAG }}
7799 public.ecr.aws/defang-io/codebuild-railpack:${{ env.IMAGE_TAG }}
78100 cache-from : type=gha,scope=${{ github.workflow }}
79101 cache-to : type=gha,scope=${{ github.workflow }},mode=max
You can’t perform that action at this time.
0 commit comments