Skip to content

Commit

Permalink
Merge branch 'main' of github.e.it.census.gov:SCT-Engineering/terrafo…
Browse files Browse the repository at this point in the history
…rm-eks-deployment into init
  • Loading branch information
arnol377 committed Apr 14, 2025
2 parents fd83dd1 + 8a6db98 commit fce4f1e
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/terraform-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Terraform CI/CD
on:
workflow_dispatch:
pull_request:
types: [closed]
branches:
- main
jobs:
terraform-ci-cd:
runs-on: 229685449397
permissions:
contents: write

steps:
- name: Checkout code
uses: CSVD/gh-actions-checkout@v4

- name: Setup GITHUB Credentials
id: github_credentials
uses: CSVD/gh-auth@main
with:
github_app_pem_file: ${{ secrets.GH_APP_PEM_FILE }}
github_app_installation_id: ${{ vars.GH_APP_INSTALLATION_ID }}
github_app_id: ${{ vars.GH_APP_ID }}

- name: Setup GitHub CLI
run: |
# Force manual authentication since setup-git might not work with GitHub Enterprise
echo "${{ steps.github_credentials.outputs.github_token }}" > /tmp/token.txt
gh auth login --with-token --hostname "github.e.it.census.gov" < /tmp/token.txt
rm /tmp/token.txt
# Test GitHub CLI auth status
gh auth status || echo "GitHub CLI authentication failed"
- name: Run Release Action
uses: CSVD/releaser@main
with:
github-token: ${{ steps.github_credentials.outputs.github_token }}
working-directory: '.'
1 change: 1 addition & 0 deletions terraform_data_dirs/default/modules/github_repo
Submodule github_repo added at 6140ff
1 change: 1 addition & 0 deletions terraform_data_dirs/default/modules/modules.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"Modules":[{"Key":"","Source":"","Dir":"."},{"Key":"github_repo","Source":"registry.terraform.io/HappyPathway/repo/github","Version":"1.0.84","Dir":"/data/terraform/workspaces/arnol377/git/terraform-eks-deployment/terraform_data_dirs/default/modules/github_repo"}]}
1 change: 1 addition & 0 deletions varfiles/default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Empty file added varfiles/default.tfvars
Empty file.

0 comments on commit fce4f1e

Please sign in to comment.