diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 10b08ba..57ff5ec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,12 +21,27 @@ jobs: with: go-version: stable + # To push with ko directly to Docker Hub + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser - # 'latest', 'nightly', or a semver version: "~> v2" args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Update Docker Hub description + uses: peter-evans/dockerhub-description@v5 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + repository: cyclimse/mcp-scaleway-functions + short-description: ${{ github.event.repository.description }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 17f1459..275b0b3 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -17,6 +17,35 @@ builds: - windows - darwin +kos: + - repositories: [cyclimse/mcp-scaleway-functions] + tags: + - "{{.Version}}" + - latest + bare: true + preserve_import_paths: false + labels: + io.modelcontextprotocol.server.name: "io.github.cyclimse/mcp-scaleway-functions" + +mcp: + name: io.github.cyclimse/mcp-scaleway-functions + title: "MCP Scaleway Functions" + description: "Unofficial MCP Server for Scaleway Serverless Functions" + + auth: + type: none + + repository: + source: github + url: https://github.com/cyclimse/mcp-scaleway-functions + id: "1061220206" + + packages: + - registry_type: oci + identifier: "docker.io/cyclimse/mcp-scaleway-functions:{{ .Version }}" + transport: + type: stdio + archives: - formats: [tar.gz] # this name template makes the OS and Arch compatible with the results of `uname`.