Skip to content

Commit

Permalink
chore: update workflow to run on demand (#3000)
Browse files Browse the repository at this point in the history
* chore: update workflow to run on demand

* fix: indentation issues in the workflow
  • Loading branch information
pratapalakshmi authored Jan 29, 2025
1 parent d6f7267 commit b19f6b8
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/packer-build-ami.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Packer build AWS AMI's
on:
workflow_dispatch:
branches:
- prod

jobs:
plan:
Expand All @@ -16,14 +14,14 @@ jobs:
- name: Checkout to Git
uses: actions/checkout@v2

- name: Assume Role
uses: ./
env:
ROLE_ARN: ${{ secrets.AWS_PACKER_ROLE }}
ROLE_SESSION_NAME: packersession
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
DURATION_SECONDS: 900
- name: Assume Role
uses: ./
env:
ROLE_ARN: ${{ secrets.AWS_PACKER_ROLE }}
ROLE_SESSION_NAME: packersession
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
DURATION_SECONDS: 900

- name: Setup `packer`
uses: hashicorp/setup-packer@main
Expand Down

0 comments on commit b19f6b8

Please sign in to comment.