|
8 | 8 | branches: |
9 | 9 | - main |
10 | 10 | tags: |
11 | | - - "[0-9]+.[0-9]+.[0-9]+" |
| 11 | + - '[0-9]+.[0-9]+.[0-9]+' |
12 | 12 | workflow_dispatch: |
13 | 13 |
|
14 | 14 | env: |
|
32 | 32 | run: | |
33 | 33 | ORT_VERSION=$(./gradlew -q printVersion) |
34 | 34 | echo "ORT_VERSION=${ORT_VERSION}" >> $GITHUB_ENV |
| 35 | + - name: Set up QEMU |
| 36 | + uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3 |
35 | 37 | - name: Set up Docker Buildx |
36 | 38 | uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3 |
37 | 39 | - name: Login to GitHub Container Registry |
|
63 | 65 | cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository_owner }}/ort:cache |
64 | 66 | cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository_owner }}/ort:cache,mode=max |
65 | 67 | build-args: ORT_VERSION=${{ env.ORT_VERSION }} |
| 68 | + platforms: linux/amd64,linux/arm64 |
66 | 69 | sbom: true |
67 | 70 | - name: Build 'ort' Docker Image |
68 | 71 | if: ${{ github.event_name == 'pull_request' }} |
|
73 | 76 | labels: ${{ steps.meta-ort.outputs.labels }} |
74 | 77 | cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository_owner }}/ort:cache |
75 | 78 | build-args: ORT_VERSION=${{ env.ORT_VERSION }} |
| 79 | + platforms: linux/amd64,linux/arm64 |
76 | 80 | sbom: true |
77 | 81 | - name: Extract Metadata for 'ort-minimal' Docker Image |
78 | 82 | id: meta-ort-minimal |
|
98 | 102 | target: minimal |
99 | 103 | cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ github.repository_owner }}/ort:cache |
100 | 104 | build-args: ORT_VERSION=${{ env.ORT_VERSION }} |
| 105 | + platforms: linux/amd64,linux/arm64 |
101 | 106 | sbom: true |
102 | 107 | - name: Print Disk Space |
103 | 108 | run: df -h |
0 commit comments