From 8d5321163b14682802b61a6c283044838583a926 Mon Sep 17 00:00:00 2001 From: Brian Fitzwater - IDI-C Date: Thu, 12 Dec 2019 07:34:14 -0500 Subject: [PATCH] Tag & Release --- .circleci/config.yml | 15 +++++++++++++++ README.md | 4 ++-- examples/example-master.tf | 2 +- examples/example-mgmt-all.tf | 2 +- examples/example-self.tf | 2 +- 5 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c257f88..58662ec 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -45,6 +45,15 @@ jobs: - run: name: Run Unit Tests command: make test_handler + release_handler: + docker: + - image: circleci/golang:latest + working_directory: /go/src/github.com/GSA/grace-inventory + steps: + - checkout + - run: + name: Release handler + command: make release_handler workflows: version: 2 @@ -53,3 +62,9 @@ workflows: - validate_terraform - lint_handler - test_handler + - release_handler: + filters: + tags: + only: /^v.*/ + branches: + only: master diff --git a/README.md b/README.md index feb20a7..f9850b9 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ download the binary release from Github or compile the handler locally. ```bash mkdir -p release cd release -curl -L https://github.com/GSA/grace-inventory/releases/download/v0.1.2/grace-inventory-lambda.zip -o grace-inventory-lambda.zip +curl -L https://github.com/GSA/grace-inventory/releases/download/v0.1.3/grace-inventory-lambda.zip -o grace-inventory-lambda.zip cd .. ``` @@ -146,7 +146,7 @@ include the following in your root terraform module: ``` module "example_self" { - source = "github.com/GSA/grace-inventory?ref=v0.1.2" + source = "github.com/GSA/grace-inventory?ref=v0.1.3" source_file = "../../release/grace-inventory-lambda.zip" appenv = "environment" project_name = "your-project" diff --git a/examples/example-master.tf b/examples/example-master.tf index f8e6b21..fbc2e31 100644 --- a/examples/example-master.tf +++ b/examples/example-master.tf @@ -2,7 +2,7 @@ // list all accounts and inventory each one using the OrganizationAccessRole // if accounts_info = "" module "example_master" { - source = "github.com/GSA/grace-inventory?ref=v0.1.2" + source = "github.com/GSA/grace-inventory?ref=v0.1.3" accounts_info = "" source_file = "../../release/grace-inventory-lambda.zip" appenv = "development" diff --git a/examples/example-mgmt-all.tf b/examples/example-mgmt-all.tf index 3b67c8d..49aaf22 100644 --- a/examples/example-mgmt-all.tf +++ b/examples/example-mgmt-all.tf @@ -3,7 +3,7 @@ // if accounts_info = "" and master_account_id and master_role_name are set // and the roles are assumable by the Lambda function's IAM role module "example_mgmt_all" { - source = "github.com/GSA/grace-inventory?ref=v0.1.2" + source = "github.com/GSA/grace-inventory?ref=v0.1.3" accounts_info = "" master_account_id = "111111111111" master_role_name = "AssumableRole" diff --git a/examples/example-self.tf b/examples/example-self.tf index 7bb4b28..90b7a3f 100644 --- a/examples/example-self.tf +++ b/examples/example-self.tf @@ -1,7 +1,7 @@ // The default behavior is to inventory only the account the lambda function // is installed in (i.e. accounts_info = "self" module "example_self" { - source = "github.com/GSA/grace-inventory?ref=v0.1.2" + source = "github.com/GSA/grace-inventory?ref=v0.1.3" source_file = "../../release/grace-inventory-lambda.zip" appenv = "development" project_name = "grace"