mirror of https://github.com/astral-sh/uv
Only use the `release` environment in Docker builds on push (#14189)
This drastically reduces the `release` deployment noise, e.g., as seen in https://github.com/astral-sh/uv/pull/14165
This commit is contained in:
parent
b18f45db14
commit
f0407e4b6f
|
|
@ -77,7 +77,7 @@ jobs:
|
|||
packages: write # for GHCR image pushes
|
||||
attestations: write # for GHCR attestations
|
||||
environment:
|
||||
name: release
|
||||
name: ${{ needs.docker-plan.outputs.push == 'true' && 'release' || '' }}
|
||||
outputs:
|
||||
image-tags: ${{ steps.meta.outputs.tags }}
|
||||
image-annotations: ${{ steps.meta.outputs.annotations }}
|
||||
|
|
@ -155,7 +155,7 @@ jobs:
|
|||
name: ${{ needs.docker-plan.outputs.action }} ${{ matrix.image-mapping }}
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: release
|
||||
name: ${{ needs.docker-plan.outputs.push == 'true' && 'release' || '' }}
|
||||
needs:
|
||||
- docker-plan
|
||||
- docker-publish-base
|
||||
|
|
@ -330,7 +330,7 @@ jobs:
|
|||
name: annotate uv
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: release
|
||||
name: ${{ needs.docker-plan.outputs.push == 'true' && 'release' || '' }}
|
||||
needs:
|
||||
- docker-plan
|
||||
- docker-publish-base
|
||||
|
|
|
|||
Loading…
Reference in New Issue