-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4af82f
commit 4698735
Showing
2 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |