|
27 | 27 | jobs: |
28 | 28 | test: |
29 | 29 | name: Unit test |
30 | | - runs-on: ubuntu-latest |
| 30 | + runs-on: blacksmith-4vcpu-ubuntu-2404 |
31 | 31 | defaults: |
32 | 32 | run: |
33 | 33 | shell: bash |
@@ -98,22 +98,28 @@ jobs: |
98 | 98 | with: |
99 | 99 | username: mjgpluralsh |
100 | 100 | password: ${{ secrets.DOCKER_ACCESS_TOKEN }} |
| 101 | + - name: Login to Docker Hardened Images |
| 102 | + uses: docker/login-action@v3 |
| 103 | + with: |
| 104 | + registry: dhi.io |
| 105 | + username: mjgpluralsh |
| 106 | + password: ${{ secrets.DOCKER_ACCESS_TOKEN }} |
101 | 107 | - name: Set up QEMU |
102 | 108 | uses: docker/setup-qemu-action@v3 |
103 | | - - name: Set up Docker Buildx |
104 | | - uses: docker/setup-buildx-action@v3 |
| 109 | + - name: Setup Blacksmith Builder |
| 110 | + uses: useblacksmith/setup-docker-builder@v2 |
| 111 | + with: |
| 112 | + cache-key: go/cloud-query/db.Dockerfile |
105 | 113 | - name: Build and push by digest |
106 | 114 | id: build |
107 | | - uses: docker/build-push-action@v6 |
| 115 | + uses: useblacksmith/build-push-action@v2 |
108 | 116 | with: |
109 | 117 | context: "./go/cloud-query" |
110 | 118 | file: "./go/cloud-query/db.Dockerfile" |
111 | 119 | tags: ${{ env.REGISTRY_IMAGE_DB }} |
112 | 120 | labels: ${{ steps.meta.outputs.labels }} |
113 | 121 | platforms: ${{ matrix.platforms.platform }} |
114 | 122 | outputs: type=image,push-by-digest=true,name-canonical=true,push=true |
115 | | - cache-from: type=gha |
116 | | - cache-to: type=gha,mode=max |
117 | 123 | build-args: | |
118 | 124 | GIT_COMMIT=${{ github.sha }} |
119 | 125 | VERSION=${{ steps.meta.outputs.version }} |
@@ -186,20 +192,20 @@ jobs: |
186 | 192 | password: ${{ secrets.DOCKER_ACCESS_TOKEN }} |
187 | 193 | - name: Set up QEMU |
188 | 194 | uses: docker/setup-qemu-action@v3 |
189 | | - - name: Set up Docker Buildx |
190 | | - uses: docker/setup-buildx-action@v3 |
| 195 | + - name: Setup Blacksmith Builder |
| 196 | + uses: useblacksmith/setup-docker-builder@v2 |
| 197 | + with: |
| 198 | + cache-key: go/cloud-query/Dockerfile |
191 | 199 | - name: Build and push by digest |
192 | 200 | id: build |
193 | | - uses: docker/build-push-action@v6 |
| 201 | + uses: useblacksmith/build-push-action@v2 |
194 | 202 | with: |
195 | 203 | context: "./go/cloud-query" |
196 | 204 | file: "./go/cloud-query/Dockerfile" |
197 | 205 | tags: ${{ env.REGISTRY_IMAGE }} |
198 | 206 | labels: ${{ steps.meta.outputs.labels }} |
199 | 207 | platforms: ${{ matrix.platforms.platform }} |
200 | 208 | outputs: type=image,push-by-digest=true,name-canonical=true,push=true |
201 | | - cache-from: type=gha |
202 | | - cache-to: type=gha,mode=max |
203 | 209 | build-args: | |
204 | 210 | GIT_COMMIT=${{ github.sha }} |
205 | 211 | VERSION=${{ steps.meta.outputs.version }} |
@@ -230,7 +236,7 @@ jobs: |
230 | 236 | - ghcr.io/pluralsh/cloud-query-db |
231 | 237 | - gcr.io/pluralsh/cloud-query-db |
232 | 238 | - docker.io/pluralsh/cloud-query-db |
233 | | - runs-on: ubuntu-latest |
| 239 | + runs-on: blacksmith-4vcpu-ubuntu-2404 |
234 | 240 | steps: |
235 | 241 | - name: Download digests |
236 | 242 | uses: actions/download-artifact@v7 |
@@ -258,8 +264,8 @@ jobs: |
258 | 264 | with: |
259 | 265 | username: mjgpluralsh |
260 | 266 | password: ${{ secrets.DOCKER_ACCESS_TOKEN }} |
261 | | - - name: Set up Docker Buildx |
262 | | - uses: docker/setup-buildx-action@v3 |
| 267 | + - name: Setup Blacksmith Builder |
| 268 | + uses: useblacksmith/setup-docker-builder@v1 |
263 | 269 | - name: Docker meta |
264 | 270 | id: meta |
265 | 271 | uses: docker/metadata-action@v5 |
@@ -293,7 +299,7 @@ jobs: |
293 | 299 | - ghcr.io/pluralsh/cloud-query |
294 | 300 | - gcr.io/pluralsh/cloud-query |
295 | 301 | - docker.io/pluralsh/cloud-query |
296 | | - runs-on: ubuntu-latest |
| 302 | + runs-on: blacksmith-4vcpu-ubuntu-2404 |
297 | 303 | steps: |
298 | 304 | - name: Download digests |
299 | 305 | uses: actions/download-artifact@v7 |
@@ -321,8 +327,8 @@ jobs: |
321 | 327 | with: |
322 | 328 | username: mjgpluralsh |
323 | 329 | password: ${{ secrets.DOCKER_ACCESS_TOKEN }} |
324 | | - - name: Set up Docker Buildx |
325 | | - uses: docker/setup-buildx-action@v3 |
| 330 | + - name: Setup Blacksmith Builder |
| 331 | + uses: useblacksmith/setup-docker-builder@v1 |
326 | 332 | - name: Docker meta |
327 | 333 | id: meta |
328 | 334 | uses: docker/metadata-action@v5 |
|
0 commit comments