|
37 | 37 | run: | |
38 | 38 | echo "REPO=${GITHUB_REPOSITORY@L}" >> "${GITHUB_OUTPUT}" |
39 | 39 |
|
40 | | - build-and-push-run-image: |
| 40 | + build-and-push-build-run-images: |
41 | 41 | if: github.event_name == 'workflow_dispatch' |
42 | 42 | runs-on: ubuntu-latest |
43 | 43 | needs: validate-tag |
@@ -66,15 +66,46 @@ jobs: |
66 | 66 | with: |
67 | 67 | context: ./run-image |
68 | 68 | file: ./run-image/Dockerfile |
| 69 | + platforms: linux/amd64,linux/arm64 |
| 70 | + target: run |
69 | 71 | push: true |
70 | | - tags: ghcr.io/${{ needs.validate-tag.outputs.repo_lower }}/base-image:${{ github.event.inputs.version }} |
| 72 | + tags: ghcr.io/${{ needs.validate-tag.outputs.repo_lower }}/run-image:${{ github.event.inputs.version }} |
| 73 | + labels: io.buildpacks.base.distro.name=ubuntu,io.buildpacks.base.distro.version=24.04 |
| 74 | + cache-from: type=gha |
| 75 | + cache-to: type=gha,mode=max |
| 76 | + |
| 77 | + - name: Build and push cuda run-image |
| 78 | + uses: docker/build-push-action@v5 |
| 79 | + with: |
| 80 | + context: ./run-image |
| 81 | + file: ./run-image/Dockerfile |
| 82 | + platforms: linux/amd64,linux/arm64 |
| 83 | + build-args: base_image=nvcr.io/nvidia/cuda-dl-base:25.10-cuda13.0-devel-ubuntu24.04 |
| 84 | + target: run |
| 85 | + push: true |
| 86 | + tags: ghcr.io/${{ needs.validate-tag.outputs.repo_lower }}/cuda-run-image:${{ github.event.inputs.version }} |
| 87 | + labels: io.buildpacks.base.distro.name=ubuntu,io.buildpacks.base.distro.version=24.04 |
| 88 | + cache-from: type=gha |
| 89 | + cache-to: type=gha,mode=max |
| 90 | + |
| 91 | + - name: Build and push cuda build-image |
| 92 | + uses: docker/build-push-action@v5 |
| 93 | + with: |
| 94 | + context: ./run-image |
| 95 | + file: ./run-image/Dockerfile |
| 96 | + platforms: linux/amd64,linux/arm64 |
| 97 | + build-args: base_image=nvcr.io/nvidia/cuda-dl-base:25.10-cuda13.0-devel-ubuntu24.04 |
| 98 | + target: build |
| 99 | + push: true |
| 100 | + tags: ghcr.io/${{ needs.validate-tag.outputs.repo_lower }}/cuda-build-image:${{ github.event.inputs.version }} |
| 101 | + labels: io.buildpacks.base.distro.name=ubuntu,io.buildpacks.base.distro.version=24.04 |
71 | 102 | cache-from: type=gha |
72 | 103 | cache-to: type=gha,mode=max |
73 | 104 |
|
74 | 105 | create-version-update-pr: |
75 | 106 | if: github.event_name == 'workflow_dispatch' |
76 | 107 | runs-on: ubuntu-latest |
77 | | - needs: [validate-tag, build-and-push-run-image] |
| 108 | + needs: [validate-tag, build-and-push-build-run-images] |
78 | 109 | permissions: |
79 | 110 | contents: write |
80 | 111 | pull-requests: write |
@@ -147,7 +178,7 @@ jobs: |
147 | 178 | username: ${{ github.actor }} |
148 | 179 | password: ${{ secrets.GITHUB_TOKEN }} |
149 | 180 |
|
150 | | - - uses: buildpacks/github-actions/setup-pack@v5.9.3 |
| 181 | + - uses: buildpacks/github-actions/setup-pack@v5.9.5 |
151 | 182 |
|
152 | 183 | - name: publish buildpacks |
153 | 184 | run: make publish_buildpacks |
|
0 commit comments