Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
igordcsouza committed Oct 22, 2019
1 parent a4af82f commit 4698735
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
22 changes: 14 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
FROM hashicorp/terraform:0.12.12
FROM alpine:latest

LABEL "com.github.actions.name"="terraform validate"
LABEL "com.github.actions.description"="Validate the terraform files in a directory"
LABEL "com.github.actions.icon"="alert-triangle"
LABEL "com.github.actions.color"="purple"
LABEL "maintainer"="Igor Souza <[email protected]>"

LABEL "repository"="https://github.com/hashicorp/terraform-github-actions"
LABEL "homepage"="http://github.com/hashicorp/terraform-github-actions"
LABEL "maintainer"="HashiCorp Terraform Team <[email protected]>"
LABEL "com.github.actions.name"="Get Branch Name"
LABEL "com.github.actions.description"="Set a environment variable called BRANCH_NAME with the current branch name"
LABEL "com.github.actions.icon"="activity"
LABEL "com.github.actions.color"="red"
LABEL "repository"="https://github.com/igordcsouza/github-action-get-branch-name"
LABEL "homepage"="https://github.com/igordcsouza/github-action-get-branch-name"

RUN apk add --no-cache \
bash \
ca-certificates \
curl \
jq

RUN apk --update --no-cache add jq curl bash

Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Terraform Validate Action
Runs `terraform validate` to validate the terraform files in a directory.
# Set Branch name as env var

See [https://www.terraform.io/docs/github-actions/actions/validate.html](https://www.terraform.io/docs/github-actions/actions/validate.html).
Variables needed `TOKEN` with a valid `github_token`!

The environment name used to set the branch name is `BRANCH_NAME`

0 comments on commit 4698735

Please sign in to comment.