Skip to content

This action runs packer build on top of kvm hypervisor.

License

Notifications You must be signed in to change notification settings

iamenr0s/packer-qemu-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Packer build action

This action runs packer build on top of kvm hypervisor

Inputs

templateFile

Optional Packer template file to use for packer build. Default "packer.json".

workingDir

Optional Directory where the packer template is located. 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: enr0s/[email protected]
        with:
          templateFile: 'packer.json'
          workingDir: '.'