Skip to content

Commit

Permalink
fix: fixed an existing bug
Browse files Browse the repository at this point in the history
Signed-off-by: Ige Adetokunbo Temitayo <igeadetokunbo@gmail.com>
  • Loading branch information
ExitoLab committed Jul 10, 2021
1 parent 445d2dc commit cce6f96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,14 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Packer build
uses: ExitoLab/packer_build_action_aws@v2.8
uses: ExitoLab/packer_build_action_aws@v2.9
with:
templateFile: 'packer-template.json'
workingDir: '.'
varFile: 'packer-vars.json'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-1
```

Pls note: Don't add the `varFile` if you do not have the file in your working directory
Pls note: Add the `varFile` if you do have the file in your working directory
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fi

# #check if variable file is supply
variableCommand=""
if [ -f "{$INPUT_VARFILE}" ]; then
if [ -f "$INPUT_VARFILE" ]; then
variableCommand="-var-file=$INPUT_VARFILE"
fi

Expand Down

0 comments on commit cce6f96

Please sign in to comment.