https://github.com/riznob/packer-build-action
Packer Build GitHub Action
https://github.com/riznob/packer-build-action
actions github-actions
Last synced: over 1 year ago
JSON representation
Packer Build GitHub Action
- Host: GitHub
- URL: https://github.com/riznob/packer-build-action
- Owner: riznob
- License: apache-2.0
- Created: 2020-02-20T17:55:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-07-29T19:28:32.000Z (almost 5 years ago)
- Last Synced: 2024-10-14T09:11:22.298Z (over 1 year ago)
- Topics: actions, github-actions
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 4
- Watchers: 1
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Packer build action
This action runs packer build.
## Inputs
### `templateFile`
**Optional** Packer template file to use for packer build. Default `"packer-template.json"`.
### `varFile`
**Optional** Var file to use for packer build. Default `"packer-vars.json"`.
### `workingDir`
**Optional** Directory where the packer template and var file reside. Default `"."`.
## Outputs
## Example usage
To configure the action simply add the following lines to your .github/workflows/packer-build.yml workflow file:
```
name: Run packer build on a template file
on:
push:
branches:
- 'master'
jobs:
packer_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Packer build
uses: riznob/packer-build-action@v1.5
with:
templateFile: 'packer-template.json'
varFile: 'packer-vars.json'
workingDir: '.'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-west-2
```