Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
star3am committed Nov 8, 2023
1 parent 9ac9509 commit af8fc7a
Showing 1 changed file with 27 additions and 20 deletions.
47 changes: 27 additions & 20 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,13 @@ jobs:
run: terraform init -upgrade
working-directory: ./terraform/awx-ansible-tower-instance

- name: Terraform auto tfvars
run: |
echo "ssh_public_key = \"${{ vars.TF_VAR_SSH_PUBLIC_KEY }}\"" >> terraform.auto.tfvars
echo "ssh_private_key = <<EOF\n${{ secrets.TF_VAR_SSH_PRIVATE_KEY }}\nEOF" >> terraform.auto.tfvars
ls -la
cat terraform.auto.tfvars
- name: Terraform plan
run: terraform plan
working-directory: ./terraform/awx-ansible-tower-instance
Expand Down Expand Up @@ -269,26 +276,26 @@ jobs:
with:
plan: ${{ fromJSON(steps.plan-run.outputs.payload).data.relationships.plan.data.id }}

- name: Upload Configuration
uses: hashicorp/tfc-workflows-github/actions/[email protected]
id: upload
with:
workspace: "awx-ansible-tower"
directory: "./terraform/awx-ansible-tower-instance"

- name: Create Run
uses: hashicorp/tfc-workflows-github/actions/[email protected]
id: create-run
with:
workspace: "awx-ansible-tower"
configuration_version: ${{ steps.upload.outputs.configuration_version_id }}

- name: Apply Run
uses: hashicorp/tfc-workflows-github/actions/[email protected]
id: apply
with:
run: ${{ steps.create-run.outputs.run_id }}
comment: "Confirmed from GitHub Actions CI"
# - name: Upload Configuration
# uses: hashicorp/tfc-workflows-github/actions/[email protected]
# id: upload
# with:
# workspace: "awx-ansible-tower"
# directory: "./terraform/awx-ansible-tower-instance"

# - name: Create Run
# uses: hashicorp/tfc-workflows-github/actions/[email protected]
# id: create-run
# with:
# workspace: "awx-ansible-tower"
# configuration_version: ${{ steps.upload.outputs.configuration_version_id }}

# - name: Apply Run
# uses: hashicorp/tfc-workflows-github/actions/[email protected]
# id: apply
# with:
# run: ${{ steps.create-run.outputs.run_id }}
# comment: "Confirmed from GitHub Actions CI"

# packer-build:
# needs: azure-image-gallery
Expand Down

0 comments on commit af8fc7a

Please sign in to comment.