Skip to content

Commit

Permalink
release v0.1.2 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekondor committed Mar 17, 2023
1 parent 21d9f18 commit 478ded0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
11 changes: 11 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Changes

## v0.1.2

- fix: error is raised when the config is not available
- fix: hook called only once
- add: `DEBUG` environment variable to trace shell execution (`set -x`)

## v0.1.1 (v0.1.0)

Initial release
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Unconditional⋆ [`pre-commit`](https://pre-commit.com) hook to encrypt certain files using `ansible-vault`

**tl;dr** git hook to encrypt `terraform`'s `tfstate` files on commit using `ansible-vault`. Could be used for other file types as well and as a standalone script.

## Usage

0. Dependencies
Expand All @@ -14,7 +16,7 @@ Unconditional⋆ [`pre-commit`](https://pre-commit.com) hook to encrypt certain

``` yaml
- repo: https://github.com/thekondor/pre-commit-hook-ensure-ansiblevaulted
rev: v0.1.0 # or other specific tag
rev: v0.1.2 # or other specific tag
hooks:
- id: ensure-ansiblevaulted
```
Expand Down Expand Up @@ -55,7 +57,7 @@ On of the common patterns to deal with use-cases like this one, is to leverage e
- Files to "protect" (specified in `.ensure-ansiblevaulted.yml`):
- have to be added manually to `.gitignore` to avoid any accidental stage (no corresponding warning/check from the hook yet);
- are limited with `find` glob-patterns;
- Each file is encrypted to a separate file-based artefact (though they all could be stored to a single `yml`-based vault).
- Each file is encrypted to a separate file-based artefact (though e.g. they all could be stored to a single `yml`-based vault).

## Disclaimer

Expand Down

0 comments on commit 478ded0

Please sign in to comment.