mirror of
https://github.com/Luzifer/hetzner-alpine-k8s.git
synced 2024-12-20 18:01:19 +00:00
Rewrite build-targets to build multiple images from repo
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
fefa09c86e
commit
993b866e60
3 changed files with 3 additions and 5 deletions
6
Makefile
6
Makefile
|
@ -8,10 +8,8 @@ YQ := ./yq_$(YQ_VERSION)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
config.json: $(YQ)
|
build/%.yaml: $(ENVRUN) $(PACKER) $(YQ)
|
||||||
$(YQ) -ojson . config.yaml | jq -S . >config.json
|
$(YQ) -ojson . $*.yaml | jq -S . >config.json
|
||||||
|
|
||||||
create-snapshot: config.json $(ENVRUN) $(PACKER)
|
|
||||||
$(PACKER) init alpine.pkr.hcl
|
$(PACKER) init alpine.pkr.hcl
|
||||||
$(ENVRUN) -- $(PACKER) build -var-file=config.json alpine.pkr.hcl
|
$(ENVRUN) -- $(PACKER) build -var-file=config.json alpine.pkr.hcl
|
||||||
|
|
||||||
|
|
|
@ -7,4 +7,4 @@ It contains a modified version of the packer / ansible setup to create a snapsho
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
- Create an `.env` file containing an `HCLOUD_TOKEN=someimportanttoken`
|
- Create an `.env` file containing an `HCLOUD_TOKEN=someimportanttoken`
|
||||||
- Execute `make create-snapshot`
|
- Execute `make build/<your YAML config, i.e. config.yaml>`
|
||||||
|
|
Loading…
Reference in a new issue