55 branches : ["main"]
66
77env :
8- RAILPACK_VERSION : " 0.4.0"
8+ BUILD_ARGS : |
9+ RAILPACK_VERSION=0.4.0
910
1011jobs :
1112 build-arm :
1718 - name : Build and push multi-arch Docker image
1819 uses : docker/build-push-action@v6
1920 with :
20- build-args : |
21- RAILPACK_VERSION=${{ env.RAILPACK_VERSION }}
21+ build-args : ${{ env.BUILD_ARGS }}
2222 file : Dockerfile
2323 platforms : linux/arm64
2424 push : false
3636 runs-on : ubuntu-latest
3737 environment : release
3838 steps :
39- - uses : actions/checkout@v4
40-
4139 - name : Set IMAGE_TAG
4240 run : echo "IMAGE_TAG=$(echo $GITHUB_SHA | cut -c 1-7)" >> $GITHUB_ENV
4341
6159 with :
6260 registry-type : public
6361
64- # - name: Set up QEMU
65- # uses: docker/setup-qemu-action@v3
62+ - name : Set up QEMU
63+ uses : docker/setup-qemu-action@v3
6664
6765 - name : Set up Docker Buildx
6866 uses : docker/setup-buildx-action@v3
@@ -86,16 +84,12 @@ jobs:
8684 - name : Build and push multi-arch Docker image
8785 uses : docker/build-push-action@v6
8886 with :
89- context : .
90- build-args : |
91- RAILPACK_VERSION=${{ env.RAILPACK_VERSION }}
87+ build-args : ${{ env.BUILD_ARGS }}
9288 file : Dockerfile
93- platforms : linux/amd64
94- # platforms: linux/amd64,linux/arm64
89+ platforms : linux/amd64,linux/arm64
9590 push : true
9691 tags : |
9792 defangio/railpack-builder:${{ env.IMAGE_TAG }}
98- ${{ env.GCP_REGION }}-docker.pkg.dev/defang-io/public/railpack-builder:${{ env.IMAGE_TAG }}
9993 public.ecr.aws/defang-io/codebuild-railpack:${{ env.IMAGE_TAG }}
10094 cache-from : type=gha,scope=${{ github.workflow }}
10195 cache-to : type=gha,scope=${{ github.workflow }},mode=max
0 commit comments