infinite-omicron / pentesting-vm

Penetration Testing Virtual Machine
GNU General Public License v3.0
2 stars 2 forks source link

Add packer action #16

Closed oxr463 closed 2 years ago

oxr463 commented 2 years ago

Reference(s):

oxr463 commented 2 years ago

Bug: https://github.com/hashicorp/packer-github-actions/issues/31

oxr463 commented 2 years ago

Bug: https://github.com/hashicorp/packer-github-actions/issues/23

oxr463 commented 2 years ago

@outzhu can you rewrite this PR to use this? https://github.com/hashicorp/packer-github-actions/issues/23#issuecomment-863526481

outzhu commented 2 years ago

Like this?

on:
  push:

build_container:
    name: packer
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v2
      - name: packer validate
        # uses: hashicorp/packer-github-actions@master
        run: packer validate -syntax-only
      - name: packer build
        # uses: hashicorp/packer-github-actions@master
        run: packer build -color=false -on-error=abort .
        env:
          PACKER_LOG: 1
oxr463 commented 2 years ago

Yep, let's try it.