Fix packer validate path for golden image workflow

This commit is contained in:
shenlan 2025-11-21 16:49:09 +08:00
parent befefc83f0
commit a7b97d3130

View File

@ -26,7 +26,7 @@ env:
BASE_REGION: ap-northeast-1
TARGET_REGIONS: "ap-northeast-1 ap-east-1 us-west-1"
PROJECT_TAG: Cloud-Neutra
PACKER_TEMPLATE_ROOT: packer/Cloud-Neutra-VMs
PACKER_TEMPLATE_ROOT: packer/Cloud-Neutra-VMs/templates
jobs:
##########################################################################
@ -56,7 +56,7 @@ jobs:
run: packer fmt -recursive .
- name: Packer Validate
run: packer validate .
run: packer validate "${PACKER_TEMPLATE_ROOT}"
- name: gitleaks Scan
uses: gitleaks/gitleaks-action@v2