diff --git a/Dockerfile.tools b/Dockerfile.tools index 5ffbf18c..811ae547 100644 --- a/Dockerfile.tools +++ b/Dockerfile.tools @@ -14,3 +14,5 @@ FROM mikefarah/yq:4.14.1 as yq FROM mstruebing/editorconfig-checker:2.3.5 as ec FROM quay.io/terraform-docs/terraform-docs:0.16.0 as tfdocs + +FROM rclone/rclone:1.53.4 as rclone diff --git a/Makefile b/Makefile index fcaad268..2a5460af 100644 --- a/Makefile +++ b/Makefile @@ -112,6 +112,17 @@ zip/install: apt-get install zip -y @ echo "[$@]: Completed successfully!" +rclone/install: RCLONE_VERSION ?= tags/v$(call match_pattern_in_file,$(TARDIGRADE_CI_DOCKERFILE_TOOLS),'rclone/rclone','$(SEMVER_PATTERN)') +rclone/install: | $(BIN_DIR) guard/program/unzip + @ echo "[$@]: Installing $(@D) $(RCLONE_VERSION) ..." + $(call download_github_release,$(@D).zip,$(@D),$(@D),$(RCLONE_VERSION),.name | endswith("$(OS)-$(ARCH).zip")) + unzip $(@D).zip + mv $(@D)-*/$(@D) $(BIN_DIR) + rm -rf $(@D)* + chmod +x $(BIN_DIR)/$(@D) + $(@D) --version + @ echo "[$@]: Completed successfully!" + terraform/install: TERRAFORM_VERSION ?= $(call match_pattern_in_file,$(TARDIGRADE_CI_DOCKERFILE_TOOLS),'hashicorp/terraform','$(SEMVER_PATTERN)') terraform/install: | $(BIN_DIR) guard/program/jq @ echo "[$@]: Installing $(@D)..." @@ -495,6 +506,6 @@ project/validate: install: terragrunt/install terraform/install shellcheck/install terraform-docs/install install: bats/install black/install pylint/install pylint-pytest/install pydocstyle/install pytest/install tftest/install install: ec/install yamllint/install cfn-lint/install yq/install bumpversion/install jq/install -install: docker-compose/install +install: docker-compose/install rclone/install lint: project/validate terraform/lint sh/lint json/lint docs/lint python/lint ec/lint cfn/lint hcl/lint