{"id":19806437,"url":"https://github.com/ory/xgoreleaser","last_synced_at":"2025-08-31T22:41:29.725Z","repository":{"id":44871982,"uuid":"236953911","full_name":"ory/xgoreleaser","owner":"ory","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-12T16:12:03.000Z","size":280,"stargazers_count":4,"open_issues_count":1,"forks_count":9,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-08-28T01:37:07.761Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"patreon":"_ory","open_collective":"ory"}},"created_at":"2020-01-29T10:13:43.000Z","updated_at":"2025-05-07T14:38:47.000Z","dependencies_parsed_at":"2024-01-08T13:44:58.815Z","dependency_job_id":"2b9283b2-655e-4504-a61e-9bb6aea65abd","html_url":"https://github.com/ory/xgoreleaser","commit_stats":{"total_commits":102,"total_committers":9,"mean_commits":"11.333333333333334","dds":"0.18627450980392157","last_synced_commit":"9ed448f7a75444e8aac0640a655e236dc96aba85"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ory/xgoreleaser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ory%2Fxgoreleaser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ory%2Fxgoreleaser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ory%2Fxgoreleaser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ory%2Fxgoreleaser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ory","download_url":"https://codeload.github.com/ory/xgoreleaser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ory%2Fxgoreleaser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273051861,"owners_count":25037074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T09:07:33.192Z","updated_at":"2025-08-31T22:41:29.697Z","avatar_url":"https://github.com/ory.png","language":"Shell","funding_links":["https://patreon.com/_ory","https://opencollective.com/ory"],"categories":[],"sub_categories":[],"readme":"# oryd/xgoreleaser\n\nThis image is published as\n[oryd/xgoreleaser](https://hub.docker.com/r/oryd/xgoreleaser).\nIt's tag (e.g. 1.13.5) reflects the Golang version used. This is a fork of\n[docker/golang-cross](https://github.com/docker/golang-cross). Alternatives\ninclude:\n\n- [elastic/golang-crossbuild](https://github.com/elastic/golang-crossbuild)\n\n## Build in CI\n\nFirst, check the versions for:\n\n- [Golang](https://golang.org/dl/)\n- [GoReleaser](https://github.com/goreleaser/goreleaser/releases)\n\nThe use\n[this workflow](https://github.com/ory/xgoreleaser/actions?query=workflow%3ADocker)\nto build and publish the image. **Do not use `v` prefixes in the version!**\n\n![Workflow parameters](.github/workflow.png)\n\n## Using the Build Tempalte\n\n```yml\n# Include the base config\nincludes:\n  - from_url:\n      url: https://raw.githubusercontent.com/ory/xgoreleaser/master/build.tmpl.yml\n\nvariables:\n  # The name of the brew tap formula:\n  # \n  # brew install ory/tap/\u003cbrew_name\u003e\n  brew_name: cli\n\n  # The description of the brew formula:\n  brew_description: \"\"\n  \n  # The variable where we store the build's git hash\n  buildinfo_hash: \"github.com/ory/cli/buildinfo.GitHash\"\n\n  # The variable where we store the build's version\n  buildinfo_tag: \"github.com/ory/cli/buildinfo.Version\"\n\n  # The variable where we store the build's time\n  buildinfo_date: \"github.com/ory/cli/buildinfo.Time\"\n\n\n# The name of the project (e.g. kratos, ory, ...). Used\n# to name the binary, docker images, etc.\nproject_name: ory\n```\n\n## Building Locally\n\nTo build this image, run locally:\n\n```shell script\n# Enable Docker experimental features and buildx\nexport DOCKER_CLI_EXPERIMENTAL=enabled\ndocker buildx create --use\n\ngo_version=1.17.5\ngoreleaser_version=1.1.0\ndocker buildx build \\\n  --load \\\n  --build-arg GO_VERSION=${go_version} --build-arg GORELEASER_VERSION=${goreleaser_version} \\\n  --platform linux/amd64 \\\n  -t oryd/xgoreleaser:${go_version}-${goreleaser_version} \\\n  -t oryd/xgoreleaser:latest \\\n  .\n```\n\nTo build this image using the CI, create a new release with the desired Golang\nversion.\n\n## Testing Builds\n\nYou can test a build using\n\n```shell script\ndocker pull --platform linux/amd64 oryd/xgoreleaser:latest\ndocker run --mount type=bind,source=\"$(pwd)\",target=/project \\\n    --platform linux/amd64 \\\n    -e GORELEASER_KEY=$GORELEASER_KEY \\\n    -v /var/run/docker.sock:/var/run/docker.sock \\\n    oryd/xgoreleaser:latest --skip-publish --snapshot --rm-dist\n```\n\nor exec into the container:\n\n```shell script\ndocker run --mount type=bind,source=\"$(pwd)\",target=/project \\\n  --platform linux/amd64 \\\n  -e GORELEASER_KEY=$GORELEASER_KEY \\\n  -v /var/run/docker.sock:/var/run/docker.sock \\\n  --entrypoint /bin/bash -it oryd/xgoreleaser:latest\n```\n\n## Updating Dependencies\n\nGo tends to remove support for older macOS SDKs which requires re-packaging and\nuploading the macOS SDK to Google Cloud. To learn how to package it, check out\n[this guide](https://github.com/tpoechtrager/osxcross#packaging-the-sdk). Next,\nupload the generated file and mark it public in this\n[Google Cloud Storage Bucket](https://console.cloud.google.com/storage/browser/ory.sh/build-assets?project=ory-web).\n\n## Updating Build Template\n\nThe [build template](./build.tmpl.yml) is ingested by all projects (e.g. Ory\nKratos) and modified slightly to fit the needs of the project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fory%2Fxgoreleaser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fory%2Fxgoreleaser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fory%2Fxgoreleaser/lists"}