ci: remove lockfile verify race condition
uv lock --check in a separate job races against the update-lockfile bot. Replace with uv lock inline in release.yml and drop the pre-job from docker-publish.yml entirely. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -15,22 +15,8 @@ env:
|
|||||||
IMAGE_NAME: sudolulo/winnow
|
IMAGE_NAME: sudolulo/winnow
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
verify-lockfile:
|
|
||||||
name: Verify uv.lock is current
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install uv
|
|
||||||
uses: astral-sh/setup-uv@v4
|
|
||||||
|
|
||||||
- name: Check lockfile is up to date
|
|
||||||
run: uv lock --check
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build (${{ matrix.platform }})
|
name: Build (${{ matrix.platform }})
|
||||||
needs: verify-lockfile
|
|
||||||
runs-on: ${{ matrix.runner }}
|
runs-on: ${{ matrix.runner }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -140,4 +126,3 @@ jobs:
|
|||||||
- name: Inspect image
|
- name: Inspect image
|
||||||
run: |
|
run: |
|
||||||
docker buildx imagetools inspect ${{ steps.tags.outputs.tags }}
|
docker buildx imagetools inspect ${{ steps.tags.outputs.tags }}
|
||||||
|
|
||||||
|
|||||||
@@ -14,22 +14,8 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
verify-lockfile:
|
|
||||||
name: Verify uv.lock is current
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install uv
|
|
||||||
uses: astral-sh/setup-uv@v4
|
|
||||||
|
|
||||||
- name: Check lockfile is up to date
|
|
||||||
run: uv lock --check
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Create GitHub Release & Build Image
|
name: Create GitHub Release & Build Image
|
||||||
needs: verify-lockfile
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -48,6 +34,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Install uv
|
||||||
|
uses: astral-sh/setup-uv@v4
|
||||||
|
|
||||||
|
- name: Ensure uv.lock is current
|
||||||
|
run: uv lock
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
@@ -138,4 +130,3 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
ghcr.io/sudolulo/winnow:latest
|
ghcr.io/sudolulo/winnow:latest
|
||||||
ghcr.io/sudolulo/winnow:${{ steps.tag.outputs.TAG }}
|
ghcr.io/sudolulo/winnow:${{ steps.tag.outputs.TAG }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user