Skip to content

Commit

Permalink
feature/PI-43-stored-properties secret stuff 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohoolio committed Oct 23, 2023
1 parent e038376 commit c6a7d85
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/make/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ runs:
if: inputs.requires-aws
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.CI_ROLE_NAME }}
role-to-assume: ${{ env.CI_ROLE_NAME }}
role-session-name: github-actions-ci-${{ env.GITHUB_SHA_SHORT }}
aws-region: eu-west-2
output-credentials: true
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/deploy-parameters-nonprod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,17 @@ on:
- int

jobs:
parse-secrets:
runs-on: [self-hosted, ci]
steps:
- id: parse-secrets
run: |
echo "::add-mask::${{ secrets.CI_ROLE_NAME }}"
echo "CI_ROLE_NAME=${{ secrets.CI_ROLE_NAME }}" >> $GITHUB_ENV
deploy:
uses: ./.github/workflows/_deploy.yml
needs: [parse-secrets]
with:
workspace: ${{ inputs.workspace }}
parameter-deploy: "parameter_deploy"
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/deploy-parameters-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@ on:
workflow_dispatch:

jobs:
parse-secrets:
runs-on: [self-hosted, ci]
steps:
- id: parse-secrets
run: |
echo "::add-mask::${{ secrets.CI_ROLE_NAME }}"
echo "CI_ROLE_NAME=${{ secrets.CI_ROLE_NAME }}" >> $GITHUB_ENV
deploy:
uses: ./.github/workflows/_deploy.yml
needs: [parse-secrets]
with:
workspace: prod
parameter-deploy: "parameter_deploy"
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ env:
RUNNING_IN_CI: 1

jobs:
parse-secrets:
runs-on: [self-hosted, ci]
steps:
- id: parse-secrets
run: |
echo "::add-mask::${{ secrets.CI_ROLE_NAME }}"
echo "CI_ROLE_NAME=${{ secrets.CI_ROLE_NAME }}" >> $GITHUB_ENV
create-workspace-name:
runs-on: [self-hosted, ci]
outputs:
Expand Down

0 comments on commit c6a7d85

Please sign in to comment.