diff --git a/.github/actions/entrypoint.sh b/.github/actions/entrypoint.sh index 39efb83..897843e 100644 --- a/.github/actions/entrypoint.sh +++ b/.github/actions/entrypoint.sh @@ -23,10 +23,6 @@ packer plugins install github.com/hashicorp/vsphere cd "${PACKER_DIR:-./packer}" pwd -ls -al ./ -ls -al /root/ansible-optimize/packer -ls -al ../ - # Validate template packer fmt -check -diff . packer validate centos9.json diff --git a/.github/workflows/build_inf.yml b/.github/workflows/build_inf.yml index c6b746d..0f7ef2e 100644 --- a/.github/workflows/build_inf.yml +++ b/.github/workflows/build_inf.yml @@ -4,10 +4,10 @@ name: Build Infrastructure on: push: branches: - - main + - tri pull_request: branches: - - main + - tri jobs: packer-build: @@ -32,12 +32,6 @@ jobs: run: | echo "Setting up Docker environment for Packer build" - - name: Set environment variables from GitHub Secrets - run: | - echo "VCENTER_USER=${{ secrets.VCENTER_USER }}" >> $GITHUB_ENV - echo "VCENTER_PASSWORD=${{ secrets.VCENTER_PASSWORD }}" >> $GITHUB_ENV - echo "VCENTER_SERVER=${{ secrets.VCENTER_SERVER }}" >> $GITHUB_ENV - - name: Run Packer Build uses: ./.github/actions # Reference custom action (Docker container) with: diff --git a/.github/workflows/terra_ci.yml b/.github/workflows/terra_ci.yml index db6787e..f103fa9 100644 --- a/.github/workflows/terra_ci.yml +++ b/.github/workflows/terra_ci.yml @@ -3,7 +3,7 @@ name: Terraform CI/CD Pipeline on: push: branches: - - main + - tri workflow_run: workflows: [Build Infrastructure] types: [completed]