--- # https://taskfile.dev version: "3" vars: DOCKERFILE: "build/Dockerfile" GIT_VERSION: sh: git describe --tags --always --dirty GIT_COMMIT: sh: git rev-parse HEAD tasks: lint: cmds: - hadolint {{.DOCKERFILE}} -t none build: run: once cmd: | docker build \ --build-arg "GIT_VERSION={{.GIT_VERSION}}" \ --build-arg "GIT_COMMIT={{.GIT_COMMIT}}" \ -t {{.IMAGE_NAME}} -f {{.DOCKERFILE}} .