Skip to content

Instantly share code, notes, and snippets.

View rafaelfuchsbr's full-sized avatar

Rafael Fuchs rafaelfuchsbr

View GitHub Profile
@rafaelfuchsbr
rafaelfuchsbr / maps.tf
Last active June 8, 2022 19:04
Terraform maps matching
locals {
a = {
"key1" = "valueX"
"key2" = "valueY"
"key3" = "valueZ"
}
b = {
"key1" = "valueA"
"key2" = "valueB"
@rafaelfuchsbr
rafaelfuchsbr / Makefile
Created March 25, 2022 11:00
Get make targets in order based on dependencies
IMAGE_DIRS = $(wildcard services/* bases/*)
# All targets are `.PHONY` ie allways need to be rebuilt
.PHONY: all ${IMAGE_DIRS}
# Build all images
all: ${IMAGE_DIRS}
# Build and tag a single image
${IMAGE_DIRS}: