diff --git a/.github/workflows/test-plugin-e2e.yaml b/.github/workflows/test-plugin-e2e.yaml index 2502fe0..e818ca0 100644 --- a/.github/workflows/test-plugin-e2e.yaml +++ b/.github/workflows/test-plugin-e2e.yaml @@ -27,12 +27,12 @@ jobs: - name: Build packer plugin run: | cd $GITHUB_WORKSPACE - make dev + make build - uses: actions/upload-artifact@v4 with: name: packer-plugin-nutanix - path: ~/.config/packer/plugins/packer-plugin-nutanix + path: packer-plugin-nutanix retention-days: 7 - name: build test list @@ -72,9 +72,7 @@ jobs: - name: Install plugin run: | - mkdir -p ~/.config/packer/plugins/ - cp /tmp/packer-plugin-nutanix ~/.config/packer/plugins/packer-plugin-nutanix - chmod 755 ~/.config/packer/plugins/packer-plugin-nutanix + packer plugins install --path /tmp/packer-plugin-nutanix "github.com/nutanix-cloud-native/nutanix" - name: Run `packer init` id: init diff --git a/Makefile b/Makefile index 0a81f60..a1a5bfa 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ NAME=nutanix BINARY=packer-plugin-${NAME} +PLUGIN_FQN="$(shell grep -E '^module'