Skip to content

Commit

Permalink
Add Travis CI. Bump module versions (#5)
Browse files Browse the repository at this point in the history
* Bump `terraform-null-label` version to `0.3.1`

* Fix `README`

* Add Travis CI
  • Loading branch information
aknysh authored Jan 8, 2018
1 parent eca99f4 commit bdf0bdf
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 6 deletions.
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
addons:
apt:
packages:
- git
- make
- curl

install:
- make init

script:
- make terraform:install
- make terraform:get-plugins
- make terraform:get-modules
- make terraform:lint
- make terraform:validate
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2017 Cloud Posse, LLC
Copyright 2017-2018 Cloud Posse, LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SHELL := /bin/bash

-include $(shell curl -sSL -o .build-harness "https://git.io/build-harness"; echo .build-harness)

lint:
$(SELF) terraform:install terraform:get-modules terraform:get-plugins terraform:lint terraform:validate
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# terraform-aws-ecr
# terraform-aws-ecr [![Build Status](https://travis-ci.org/cloudposse/terraform-aws-ecr.svg)](https://travis-ci.org/cloudposse/terraform-aws-ecr)

Terraform module to provision an [`AWS ECR Docker Container registry`](https://aws.amazon.com/ecr/).

Expand Down Expand Up @@ -36,9 +36,9 @@ module "ecr" {

| Name | Default | Description | Required|
|:----------------------------:|:--------------:|:--------------------------------------------------------------------------------------------------------:|:-------------:|
| `namespace` | `global` | Namespace (e.g. `cp` or `cloudposse`) - required for `tf_label` module | Yes |
| `stage` | `default` | Stage (e.g. `prod`, `dev`, `staging` - required for `tf_label` module | Yes |
| `name` | `admin` | The Name of the application or solution (e.g. `bastion` or `portal`) - required for `tf_label` module | Yes |
| `namespace` | `global` | Namespace (e.g. `cp` or `cloudposse`) | Yes |
| `stage` | `default` | Stage (e.g. `prod`, `dev`, `staging`) | Yes |
| `name` | `admin` | The Name of the application or solution (e.g. `bastion` or `portal`) | Yes |
| `roles` | `[]` | List of IAM role names that will be granted permissions to use the container registry | No (optional) |


Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ data "aws_iam_policy_document" "resource" {
}

module "label" {
source = "git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.2.1"
source = "git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.3.1"
namespace = "${var.namespace}"
stage = "${var.stage}"
name = "${var.name}"
Expand Down

0 comments on commit bdf0bdf

Please sign in to comment.