Add Makefile & release preparation tooling. Update README with Makefile usage.

This commit is contained in:
david.gunter
2021-01-14 12:50:54 -08:00
parent b60fa8a444
commit 7e3ab368e2
5 changed files with 209 additions and 2 deletions

View File

@@ -121,10 +121,29 @@ If multiple 1Password vaults/items have the same `title` when using a title in t
---
## Development
### Creating a Docker image
To create a local version of the Docker image for testing, use the following `Makefile` target:
```shell
make build/local
```
### Building the Operator binary
```shell
make build/binary
```
The binary will be placed inside a `dist` folder within this repository.
### Running Tests
```bash
$ go test -v ./... -cover
```shell
make test
```
With coverage:
```shell
make test/coverage
```
## Security