-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
38 additions
and
73 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # This is a basic workflow to help you get started with Actions | ||
|
|
||
| name: CI | ||
|
|
||
| # Controls when the workflow will run | ||
| on: | ||
| # Triggers the workflow on push or pull request events but only for the "main" branch | ||
| push: | ||
| branches: [ "main" ] | ||
| # Allows you to run this workflow manually from the Actions tab | ||
| workflow_dispatch: | ||
|
|
||
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
| jobs: | ||
| # This workflow contains a single job called "build" | ||
| build: | ||
| # The type of runner that the job will run on | ||
| runs-on: [ image-pipeline ] | ||
|
|
||
| # Steps represent a sequence of tasks that will be executed as part of the job | ||
| steps: | ||
| # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
| - uses: actions/checkout@v3 | ||
|
|
||
| - uses: hashicorp/setup-terraform@v3 | ||
| with: | ||
| terraform_wrapper: false | ||
|
|
||
| # Runs a set of commands using the runners shell | ||
| - name: Run a multi-line script | ||
| run: | | ||
| terraform init -upgrade | ||
| terraform apply -auto-approve | ||
| env: | ||
| AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
| AWS_ACCESS_KEY_ID=${{ vars.AWS_ACCESS_KEY_ID }} |
This file contains 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,34 +1,2 @@ | ||
| # aws-image-pipeline | ||
| Terraform Workspace for creating and managing AWS Image Pipelines | ||
|
|
||
|
|
||
|
|
||
| To SSO Login: | ||
| aws sso login --profile 229685449397-csvd-dev-gov.inf-admin-t2 | ||
|
|
||
| export AWS_PROFILE=229685449397-csvd-dev-gov.inf-admin-t2 | ||
|
|
||
| aws sts get-caller-identity | ||
|
|
||
|
|
||
| Git Syncing / Mirroring: | ||
|
|
||
| git remote add ansible-upstream https://git-codecommit.us-gov-west-1.amazonaws.com/v1/repos/image-pipeline-ansible-playbooks | ||
|
|
||
| git remote add goss-upstream https://git-codecommit.us-gov-west-1.amazonaws.com/v1/repos/image-pipeline-goss-testing | ||
|
|
||
| git push origin main --force | ||
| git push ansible-upstream main --force | ||
| git push goss-upstream main --force | ||
|
|
||
| rebecaa linn : She does x86 (get context for ARM) | ||
|
|
||
|
|
||
| cd ~/.aws/ | ||
|
|
||
| terraform plan -out=plan.out | tee terraform_plan.log | ||
|
|
||
| #Formatting error command | ||
| yamllint 'file name' | ||
|
|
||
|
|
||
| Terraform Workspace for creating and managing AWS Image Pipelines. |
This file contains 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
This file contains 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
This file contains 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