New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test stage and ci jobs #224
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
[![GitHub release](https://img.shields.io/github/release/docker/docker-credential-helpers.svg?style=flat-square)](https://github.com/docker/docker-credential-helpers/releases/latest) | ||
[![PkgGoDev](https://img.shields.io/badge/go.dev-docs-007d9c?style=flat-square&logo=go&logoColor=white)](https://pkg.go.dev/github.com/docker/docker-credential-helpers) | ||
[![Build Status](https://img.shields.io/github/workflow/status/docker/docker-credential-helpers/build?label=build&logo=github&style=flat-square)](https://github.com/docker/docker-credential-helpers/actions?query=workflow%3Abuild) | ||
[![Codecov](https://img.shields.io/codecov/c/github/docker/docker-credential-helpers?logo=codecov&style=flat-square)](https://codecov.io/gh/docker/docker-credential-helpers) | ||
[![Go Report Card](https://goreportcard.com/badge/github.com/docker/docker-credential-helpers?style=flat-square)](https://goreportcard.com/report/github.com/docker/docker-credential-helpers) | ||
|
||
## Introduction | ||
|
||
docker-credential-helpers is a suite of programs to use native stores to keep Docker credentials safe. | ||
|
@@ -6,9 +12,21 @@ docker-credential-helpers is a suite of programs to use native stores to keep Do | |
|
||
Go to the [Releases](https://github.com/docker/docker-credential-helpers/releases) page and download the binary that works better for you. Put that binary in your `$PATH`, so Docker can find it. | ||
|
||
### Building from scratch | ||
## Building | ||
|
||
You can build the credential helpers using Docker: | ||
|
||
```shell | ||
# create builder | ||
$ docker buildx create --use | ||
# build credential helpers from remote repository and output to ./bin/build | ||
$ docker buildx bake "https://github.com/docker/docker-credential-helpers.git" | ||
# or from local source | ||
$ git clone https://github.com/docker/docker-credential-helpers.git | ||
$ docker buildx bake | ||
``` | ||
|
||
The programs in this repository are written with the Go programming language. These instructions assume that you have previous knowledge about the language and you have it installed in your machine. | ||
Or if the toolchain is already installed on your machine: | ||
|
||
1 - Download the source and put it in your `$GOPATH` with `go get`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like this section is in need of a rewrite as well ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes if we bump to Go 1.19 this has to be changed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I prepared #226 for go 1.18 (but best to do after this one) |
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this require a container builder? If it's just single arch, it should work without, I think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes required because we are building against multi-platforms (osxkeychain, wincred, pass)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, right, it's building all of them
what's the easiest way to build only one?