Skip to content
Open
Show file tree
Hide file tree
Changes from 14 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
18 changes: 10 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 @@ -27,17 +27,19 @@ jobs:
uses: actions/checkout@v4
with:
submodules: true
- name: run git clone
run: |
ls -al
cd ansible-optimize
git checkout tri
git clone https://github.com/CDN-Z/ansible-optimize.git
git fetch --all
git checkout tri

- name: Set up Docker Build Environment
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
Loading