chore: add dev target helper (#457)

##### SUMMARY

Adds a helper to configure the dev env. For example reexporting a
hcloud_token and reload the integration tests configuration:
```bash
export HCLOUD_TOKEN="$(get-tmp-hcloud-token)"
make dev
```
This commit is contained in:
Jonas L 2024-02-06 14:04:18 +01:00 committed by GitHub
parent 4db57dcf22
commit cf52215864
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View file

@ -1,5 +1,8 @@
SHELL := bash
.PHONY: vendor clean
.PHONY: vendor clean dev
dev:
cat tests/integration/cloud-config-hcloud.ini.in | envsubst > tests/integration/cloud-config-hcloud.ini
vendor:
python3 scripts/vendor.py
@ -21,8 +24,7 @@ lint-docs: venv
.
clean:
git clean -xdf \
-e tests/integration/cloud-config-hcloud.ini
git clean -xdf
sanity:
ansible-test sanity --color --truncate 0 -v \

View file

@ -0,0 +1,2 @@
[default]
hcloud_api_token=$HCLOUD_TOKEN