chore: release 0.138.33 #310
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: Docker Image | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to GHCR | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Compute image metadata | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ghcr.io/signet-ai/signet | |
| tags: | | |
| type=ref,event=tag | |
| type=sha | |
| type=semver,pattern={{version}},enable=${{ !contains(github.ref_name, '-') }} | |
| type=semver,pattern={{major}}.{{minor}},enable=${{ !contains(github.ref_name, '-') }} | |
| type=semver,pattern={{major}},enable=${{ !contains(github.ref_name, '-') }} | |
| type=raw,value=latest,enable=${{ !contains(github.ref_name, '-') }} | |
| - name: Build and push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: deploy/docker/Dockerfile | |
| platforms: linux/amd64,linux/arm64 | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| - name: Verify public GHCR latest pull | |
| if: ${{ !contains(github.ref_name, '-') }} | |
| run: | | |
| set -euo pipefail | |
| tmp_config="$(mktemp -d)" | |
| trap 'rm -rf "${tmp_config}"' EXIT | |
| if ! DOCKER_CONFIG="${tmp_config}" docker manifest inspect ghcr.io/signet-ai/signet:latest >/tmp/signet-public-manifest.json; then | |
| echo "::error::Published ghcr.io/signet-ai/signet:latest is not publicly pullable." >&2 | |
| echo "The stable Docker image was pushed, but anonymous GHCR pulls cannot retrieve it." >&2 | |
| echo "Set the GHCR package visibility to public and keep repository inheritance linked:" >&2 | |
| echo "https://github.com/orgs/Signet-AI/packages/container/package/signet/settings" >&2 | |
| exit 1 | |
| fi |