|
13 | 13 | permissions: |
14 | 14 | contents: read |
15 | 15 | packages: write |
| 16 | + attestations: write |
| 17 | + id-token: write |
16 | 18 |
|
17 | 19 | jobs: |
18 | 20 | release: |
@@ -97,30 +99,52 @@ jobs: |
97 | 99 | # ----------------------------------------- |
98 | 100 | # 7. Build and push requester image |
99 | 101 | # ----------------------------------------- |
100 | | - - name: Build and push requester image |
101 | | - run: | |
102 | | - TAG="${{ steps.version.outputs.tag }}" |
103 | | - reg="${{ github.repository }}" |
104 | | -
|
105 | | - make build-and-push-requester \ |
106 | | - CONTAINER_IMG_REG=ghcr.io/${reg@L} \ |
107 | | - REQUESTER_IMG_TAG=$TAG |
| 102 | + - name: Extract requester metadata |
| 103 | + id: requester-meta |
| 104 | + uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0 |
| 105 | + with: |
| 106 | + images: ghcr.io/${{ github.repository }}/requester |
| 107 | + tags: | |
| 108 | + type=raw,value=${{ steps.version.outputs.tag }} |
108 | 109 |
|
109 | | - echo "Requester image published: ghcr.io/${reg@L}/requester:$TAG" |
| 110 | + - name: Build and push requester image |
| 111 | + uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0 |
| 112 | + with: |
| 113 | + context: . |
| 114 | + file: ./dockerfiles/Dockerfile.requester |
| 115 | + platforms: linux/amd64,linux/arm64 |
| 116 | + push: true |
| 117 | + provenance: true |
| 118 | + cache-from: type=gha |
| 119 | + cache-to: type=gha,mode=max |
| 120 | + tags: ${{ steps.requester-meta.outputs.tags }} |
| 121 | + labels: ${{ steps.requester-meta.outputs.labels }} |
| 122 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
110 | 123 |
|
111 | 124 | # ----------------------------------------- |
112 | 125 | # 8. Build and push launcher image |
113 | 126 | # ----------------------------------------- |
114 | | - - name: Build and push launcher image |
115 | | - run: | |
116 | | - TAG="${{ steps.version.outputs.tag }}" |
117 | | - reg="${{ github.repository }}" |
118 | | -
|
119 | | - make build-and-push-launcher \ |
120 | | - CONTAINER_IMG_REG=ghcr.io/${reg@L} \ |
121 | | - LAUNCHER_IMG_TAG=$TAG |
| 127 | + - name: Extract launcher metadata |
| 128 | + id: launcher-meta |
| 129 | + uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0 |
| 130 | + with: |
| 131 | + images: ghcr.io/${{ github.repository }}/launcher |
| 132 | + tags: | |
| 133 | + type=raw,value=${{ steps.version.outputs.tag }} |
122 | 134 |
|
123 | | - echo "Launcher image published: ghcr.io/${reg@L}/launcher:$TAG" |
| 135 | + - name: Build and push launcher image |
| 136 | + uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0 |
| 137 | + with: |
| 138 | + context: . |
| 139 | + file: ./dockerfiles/Dockerfile.launcher.benchmark |
| 140 | + platforms: linux/amd64 |
| 141 | + push: true |
| 142 | + provenance: true |
| 143 | + cache-from: type=gha |
| 144 | + cache-to: type=gha,mode=max |
| 145 | + tags: ${{ steps.launcher-meta.outputs.tags }} |
| 146 | + labels: ${{ steps.launcher-meta.outputs.labels }} |
| 147 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
124 | 148 |
|
125 | 149 | # ----------------------------------------- |
126 | 150 | # 9. Update Helm chart values with release images |
|
0 commit comments