Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/actions/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/build_inf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ name: Build Infrastructure
on:
push:
branches:
- main
- tri
pull_request:
branches:
- main
- tri

jobs:
packer-build:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/terra_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Terraform CI/CD Pipeline
on:
push:
branches:
- main
- tri
workflow_run:
workflows: [Build Infrastructure]
types: [completed]
Expand Down