fix(container): bump uv to 0.11.22, remove uv/uvx from runtime #454
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI Build | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - 'LICENSE' | |
| - '**/.gitignore' | |
| - '**.md' | |
| - '**.adoc' | |
| - '*.txt' | |
| types: [labeled, opened, synchronize, reopened] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| steps: | |
| - uses: mheap/github-action-required-labels@v4 | |
| with: | |
| mode: minimum | |
| count: 1 | |
| labels: "ok-to-test, lgtm, approved" | |
| - uses: actions/checkout@v4 | |
| - name: Add expiry label to CI image | |
| run: | | |
| sed -i 's#^ org.opencontainers.image.base.name="\([^"]*\)"$# org.opencontainers.image.base.name="\1" \\\n quay.expires-after=7d#' Containerfile | |
| grep -A 1 'org.opencontainers.image.base.name=' Containerfile | grep -q 'quay.expires-after=7d' || { echo "::error::Failed to inject quay.expires-after label after base.name line"; exit 1; } | |
| - name: Build image | |
| run: docker build -f Containerfile -t trustyai-ci:${{ github.event.pull_request.head.sha }} . | |
| - name: Save image | |
| run: docker save trustyai-ci:${{ github.event.pull_request.head.sha }} | gzip > /tmp/image.tar.gz | |
| - name: Save PR metadata | |
| run: | | |
| echo "${{ github.event.pull_request.number }}" > /tmp/pr-number.txt | |
| echo "${{ github.event.pull_request.head.sha }}" > /tmp/pr-sha.txt | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ci-build | |
| path: | | |
| /tmp/image.tar.gz | |
| /tmp/pr-number.txt | |
| /tmp/pr-sha.txt | |
| retention-days: 1 |