Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 2.12 KB

README.md

File metadata and controls

62 lines (43 loc) · 2.12 KB

goreleaser-rust-cross

🚀 Help me to become a full-time open-source developer by sponsoring me on GitHub

Docker image for cross-compiling Rust projects with GoReleaser.

TODO:

  • Add chocolatey
  • Fix warning during release builds for *-apple-darwin targets

Installed tools

By using this software you are consented to accept the license at https://go.microsoft.com/fwlink/?LinkId=2086102

Please ensure you have read and understood the Xcode license terms before continuing.

Docker

Environment variables

  • GoReleaser variables.
  • GPG_KEY (optional) - defaults to /secrets/key.gpg. Ignored if file not found.
  • DOCKER_CREDS_FILE (optional) - path to JSON file with docker login credentials. Useful when push to multiple docker registries required.
  • DOCKER_FAIL_ON_LOGIN_ERROR (optional) - fail on docker login error.

Login to registry

Github Actions

Use docker login to auth to repos and mount docker config file. For example:

docker run -v $(HOME)/.docker/config.json:/root/.docker/config.json ...

Docker Creds file

To login from within goreleaser-rust-cross container, create creds file.

{
    "registries": [
        {
            "user": "<username>",
            "pass": "<password>",
            "registry": "<registry-url>" // for e.g. ghcr.io
        }
    ]
}

License

This work is released under the MIT license. A copy of the license is provided in the LICENSE file.