Skip to content

Commit

Permalink
put assume role after build
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyNava committed Dec 4, 2024
1 parent b657c5e commit bd0982c
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/deploy-test-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,18 @@ jobs:
sudo gem install jekyll bundler
sudo bundle install
# - name: Debug xxx
# run: |
## dnf list --installed
# echo $PATH
# which ruby
# which bundle

- name: "Build Site"
run: bundle exec jekyll build --baseurl /${{github.ref_name}}
env:
JEKYLL_ENV: test

- name: Assume role in AB2D Management account
uses: aws-actions/configure-aws-credentials@v3
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::${{ secrets.MGMT_ACCOUNT_ID }}:role/delegatedadmin/developer/ab2d-mgmt-github-actions

- name: "Build Site"
run: bundle exec jekyll build --baseurl /${{github.ref_name}}
env:
JEKYLL_ENV: test

# - name: "Debug Print"
# - name: "Debug Print - gets around secret filtering"
# run: echo AWS_BUCKET_NAME:${{secrets.AWS_S3_BUCKET_NAME}} | sed 's/./& /g' ; echo github.ref_name:${{github.ref_name}}
#
- name: "Deploy to AWS S3"
Expand Down

0 comments on commit bd0982c

Please sign in to comment.