Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Remove secrets and fix shell step in task definition redeploy (#1517)

sarayourfriendc8063cd6f6fa
diff --git a/.github/actions/frontend-deploy/action.yml b/.github/actions/frontend-deploy/action.yml
index bbb7dd7d7..93758f0d5 100644
--- a/.github/actions/frontend-deploy/action.yml
+++ b/.github/actions/frontend-deploy/action.yml
@@ -12,6 +12,10 @@ inputs:
tag:
required: true
description: Image tag to deploy.
+ aws_access_key_id:
+ required: true
+ aws_secret_access_key:
+ required: true
runs:
using: "composite"
@@ -20,12 +24,12 @@ runs:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
- aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
- aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ aws-access-key-id: ${{ inputs.aws_access_key_id }}
+ aws-secret-access-key: ${{ inputs.aws_secret_access_key }}
aws-region: us-east-2
- name: Download task definition
- with: shell
+ shell: bash
run: |
aws ecs describe-task-definition \
--task-definition staging-frontend \
diff --git a/.github/workflows/frontend_deploy.yml b/.github/workflows/frontend_deploy.yml
index 7071c3eab..097d76aec 100644
--- a/.github/workflows/frontend_deploy.yml
+++ b/.github/workflows/frontend_deploy.yml
@@ -24,3 +24,5 @@ jobs:
- uses: ./.github/actions/frontend-deploy
with:
tag: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.sha) || (github.event_name == 'push' && 'main') || github.event.release.tag_name }}
+ aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
+ aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}