From 1bf9d879ab2a3302b1b30d8387633157f884d27d Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sun, 21 Apr 2024 12:02:48 -0400 Subject: [PATCH] Re-add Docker image to release pipeline (#3155) ## Summary I already re-created and pushed the image, and set its visibility to public (it defaults to private) -- see: https://github.com/astral-sh/uv/pkgs/container/uv. Closes https://github.com/astral-sh/uv/issues/2774. --- .github/workflows/release.yml | 13 +++++++++++++ Cargo.toml | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) 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"]