diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 289b7a1c4..10511835e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -92,11 +92,24 @@ jobs: plan: ${{ needs.plan.outputs.val }} secrets: inherit + custom-build-docker: + needs: + - plan + if: ${{ needs.plan.outputs.publishing == 'true' || fromJson(needs.plan.outputs.val).ci.github.pr_run_mode == 'upload' || inputs.tag == 'dry-run' }} + uses: ./.github/workflows/build-docker.yml + with: + plan: ${{ needs.plan.outputs.val }} + secrets: inherit + permissions: + packages: write + contents: read + # Build and package all the platform-agnostic(ish) things build-global-artifacts: needs: - plan - custom-build-binaries + - custom-build-docker runs-on: "ubuntu-20.04" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index b709bc638..ec92f6ff7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -241,6 +241,6 @@ dispatch-releases = true # Whether CI should include auto-generated code to build local artifacts build-local-artifacts = false # Local artifacts jobs to run in CI -local-artifacts-jobs = ["./build-binaries"] +local-artifacts-jobs = ["./build-binaries", "./build-docker"] # Publish jobs to run in CI publish-jobs = ["./publish-pypi"]