Skip to content

Commit

Permalink
move from using secrets to ssm in main action for matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
mythilytm committed Jul 29, 2024
1 parent c8165fb commit 41ad849
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/actions/main-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ runs:
with:
ssm_parameter: "ASELO_DEPLOYS_CHANNEL_ID"
env_variable_name: "ASELO_DEPLOYS_CHANNEL_ID"
- name: Set Google Sheets credentials
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "GOOGLE_SHEETS_CREDENTIALS"
env_variable_name: "GOOGLE_SHEETS_CREDENTIALS"
- name: Set Google Sheets ID
uses: "marvinpinto/action-inject-ssm-secrets@latest"
with:
ssm_parameter: "CD_GOOGLE_SHEET_ID"
env_variable_name: "GOOGLE_SHEET_ID"
# Create temporal files for the release
- name: Create appConfig.js
run: cp ./public/appConfig.template.deploy.js ./public/appConfig.js
Expand Down Expand Up @@ -142,13 +152,13 @@ runs:
slack-message: "`[FLEX]` Deployment to `${{ inputs.helpline-id }}` of ${{ github.ref_type }} `${{ github.ref_name }}` requested by `${{ github.triggering_actor }}` completed using workflow '${{ github.workflow }}' with SHA ${{ github.sha }} :rocket:."
env:
SLACK_BOT_TOKEN: ${{ env.GITHUB_ACTIONS_SLACK_BOT_TOKEN }}
# Update deployment matrix with script
# Update deployment matrix with script and ssm parameters
- name: Update deployment matrix
uses: ./.github/actions/deployment-matrix
with:
identifier: ${{ inputs.helpline-id }}
service_repo: 'flex-plugins'
environment: ${{ inputs.environment}}
version_tag: ${{ github.ref_name }}
GOOGLE_SHEETS_CREDENTIALS: ${{ secrets.GOOGLE_SHEETS_CREDENTIALS }}
GOOGLE_SHEET_ID: ${{ secrets.GOOGLE_SHEET_ID }}
GOOGLE_SHEETS_CREDENTIALS: ${{ env.GOOGLE_SHEETS_CREDENTIALS }}
GOOGLE_SHEET_ID: ${{ env.GOOGLE_SHEET_ID }}

0 comments on commit 41ad849

Please sign in to comment.