-
Notifications
You must be signed in to change notification settings - Fork 11
46 lines (40 loc) · 1.31 KB
/
test-plugin-example.yml
File metadata and controls
46 lines (40 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# This is a manually triggered action workflow.
# It uses Packer at latest version to init, validate and build
# an example configuration in a folder.
# This action is compatible with Packer v1.7.0 or later.
name: test plugin example
on:
workflow_dispatch:
inputs:
logs:
description: 'Set 1 to activate full logs'
required: false
default: '0'
jobs:
build:
runs-on: ubuntu-latest
name: init and build example
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Build and Install Plugin
run: make dev
- name: Init
uses: hashicorp/setup-packer@c3d53c525d422944e50ee27b840746d6522b08de # v3.2.0
with:
working_directory: './example'
command: init
- name: Validate
uses: hashicorp/setup-packer@c3d53c525d422944e50ee27b840746d6522b08de # v3.2.0
with:
working_directory: './example'
command: validate
env:
PACKER_LOG: ${{ github.event.inputs.logs }}
- name: Build
uses: hashicorp/setup-packer@c3d53c525d422944e50ee27b840746d6522b08de # v3.2.0
with:
working_directory: './example'
command: build
env:
PACKER_LOG: ${{ github.event.inputs.logs }}