|
1 | 1 | # Release - Build and publish releases |
2 | | -# Builds multi-platform binaries, Docker images, and publishes to crates.io |
| 2 | +# Builds multi-platform binaries and publishes to crates.io |
3 | 3 |
|
4 | 4 | name: Release |
5 | 5 |
|
@@ -331,50 +331,6 @@ jobs: |
331 | 331 | ${{ matrix.archive }}.sha256 |
332 | 332 | retention-days: 1 |
333 | 333 |
|
334 | | - build-docker: |
335 | | - name: Build Docker Images |
336 | | - needs: [validate, test] |
337 | | - runs-on: ubuntu-latest |
338 | | - continue-on-error: true # Don't block release on Docker build failures |
339 | | - steps: |
340 | | - - name: Checkout |
341 | | - uses: actions/checkout@v4 |
342 | | - |
343 | | - - name: Set up QEMU |
344 | | - uses: docker/setup-qemu-action@v3 |
345 | | - |
346 | | - - name: Set up Docker Buildx |
347 | | - uses: docker/setup-buildx-action@v3 |
348 | | - |
349 | | - - name: Login to Docker Hub |
350 | | - if: github.event.inputs.dry_run != 'true' |
351 | | - uses: docker/login-action@v3 |
352 | | - with: |
353 | | - username: ${{ secrets.DOCKERHUB_USERNAME }} |
354 | | - password: ${{ secrets.DOCKERHUB_TOKEN }} |
355 | | - |
356 | | - - name: Login to GitHub Container Registry |
357 | | - if: github.event.inputs.dry_run != 'true' |
358 | | - uses: docker/login-action@v3 |
359 | | - with: |
360 | | - registry: ghcr.io |
361 | | - username: ${{ github.actor }} |
362 | | - password: ${{ secrets.GITHUB_TOKEN }} |
363 | | - |
364 | | - - name: Build and push Docker images |
365 | | - uses: docker/build-push-action@v5 |
366 | | - with: |
367 | | - context: . |
368 | | - platforms: linux/amd64,linux/arm64,linux/arm/v7 |
369 | | - push: ${{ github.event.inputs.dry_run != 'true' }} |
370 | | - tags: | |
371 | | - ${{ secrets.DOCKERHUB_USERNAME }}/saorsa-transport:${{ needs.validate.outputs.version_number }} |
372 | | - ${{ secrets.DOCKERHUB_USERNAME }}/saorsa-transport:latest |
373 | | - ghcr.io/${{ github.repository }}:${{ needs.validate.outputs.version_number }} |
374 | | - ghcr.io/${{ github.repository }}:latest |
375 | | - cache-from: type=gha |
376 | | - cache-to: type=gha,mode=max |
377 | | - |
378 | 334 | publish-crate: |
379 | 335 | name: Publish to crates.io |
380 | 336 | needs: [validate, test, changelog] |
@@ -466,11 +422,6 @@ jobs: |
466 | 422 | .\saorsa-transport.exe --help |
467 | 423 | ``` |
468 | 424 |
|
469 | | - #### Docker |
470 | | - ```bash |
471 | | - docker pull ghcr.io/${{ github.repository }}:${{ needs.validate.outputs.version_number }} |
472 | | - ``` |
473 | | -
|
474 | 425 | ### What's Changed |
475 | 426 |
|
476 | 427 | ${{ needs.changelog.outputs.changelog }} |
|
0 commit comments