diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 610773fe..488e3d66 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -63,6 +63,6 @@ jobs: env: DIGEST: ${{ steps.build-and-push.outputs.digest }} run: | - cosign verify ghcr.io/sozercan/${{ env.MODEL_NAME }}:${{ env.MODEL_SIZE }}${{ env.MODEL_RUNTIME }}@${DIGEST} \ - --certificate-identity https://github.com/sozercan/aikit/.github/workflows/release.yaml@refs/heads/main \ - --certificate-oidc-issuer https://token.actions.githubusercontent.com | jq + cosign verify ghcr.io/sozercan/aikit@${DIGEST} \ + --certificate-oidc-issuer https://token.actions.githubusercontent.com \ + --certificate-identity https://github.com/sozercan/aikit/.github/workflows/release.yaml@refs/heads/main diff --git a/.github/workflows/test-docker.yaml b/.github/workflows/test-docker.yaml index b1d0098b..f7900b2c 100644 --- a/.github/workflows/test-docker.yaml +++ b/.github/workflows/test-docker.yaml @@ -67,7 +67,7 @@ jobs: - name: run test run: | - curl --retry 20 --retry-delay 30 --retry-all-errors http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{"model": "tinyllama-1.1b-chat", "messages": [{"role": "user", "content": "explain kubernetes in a sentence"}]}' + curl http://localhost:8080/v1/chat/completions -H "Content-Type: application/json" -d '{"model": "tinyllama-1.1b-chat", "messages": [{"role": "user", "content": "explain kubernetes in a sentence"}]}' - name: save logs if: always() diff --git a/.github/workflows/update-models.yaml b/.github/workflows/update-models.yaml index 23b4a5d7..f76f98fd 100644 --- a/.github/workflows/update-models.yaml +++ b/.github/workflows/update-models.yaml @@ -52,8 +52,8 @@ jobs: push: true tags: ghcr.io/sozercan/${{ env.MODEL_NAME }}:${{ env.MODEL_SIZE }}${{ env.MODEL_RUNTIME }} file: models/${{ matrix.model }}.yaml - cache-from: type=gha,scope=${{ env.MODEL_NAME }}:${{ env.MODEL_SIZE }} - cache-to: type=gha,scope=${{ env.MODEL_NAME }}:${{ env.MODEL_SIZE }},mode=max + cache-from: type=gha,scope=${{ env.MODEL_NAME }}-${{ env.MODEL_SIZE }} + cache-to: type=gha,scope=${{ env.MODEL_NAME }}-${{ env.MODEL_SIZE }},mode=max - name: Sign the images with GitHub OIDC Token env: @@ -65,5 +65,5 @@ jobs: DIGEST: ${{ steps.build-and-push.outputs.digest }} run: | cosign verify ghcr.io/sozercan/${{ env.MODEL_NAME }}:${{ env.MODEL_SIZE }}${{ env.MODEL_RUNTIME }}@${DIGEST} \ - --certificate-identity https://github.com/sozercan/aikit/.github/workflows/update-models.yaml@refs/heads/main \ - --certificate-oidc-issuer https://token.actions.githubusercontent.com | jq + --certificate-oidc-issuer https://token.actions.githubusercontent.com \ + --certificate-identity https://github.com/sozercan/aikit/.github/workflows/update-models.yaml@refs/heads/main