change wordir #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Infrastructure | |
| on: | |
| push: | |
| branches: | |
| - tri | |
| pull_request: | |
| branches: | |
| - tri | |
| jobs: | |
| packer-build: | |
| #runs-on: ubuntu-latest # Can be changed based on your needs | |
| runs-on: self-hosted | |
| defaults: | |
| run: | |
| working-directory: ./ | |
| container: | |
| image: ghcr.io/catthehacker/ubuntu:act-latest | |
| # volumes: | |
| # - ansible:/ansible | |
| # - packer:/packer | |
| # - terraform:/terraform | |
| # - vagrant:/vagrant | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Set up Docker Build Environment | |
| run: | | |
| echo "Setting up Docker environment for Packer build" | |
| - name: Run Packer Build | |
| uses: ./.github/actions # Reference custom action (Docker container) | |
| with: | |
| vcenter_user: ${{ secrets.VCENTER_USER }} | |
| vcenter_password: ${{ secrets.VCENTER_PASSWORD }} | |
| vcenter_server: ${{ secrets.VCENTER_SERVER }} | |