Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Update deployment actions using new definitions (#2123)
Madison Swain-Bowdene75021512528
diff --git a/.github/actions/production-deploy/action.yml b/.github/actions/production-deploy/action.ymlindex 24336ae49..886ddcf15 100644--- a/.github/actions/production-deploy/action.yml+++ b/.github/actions/production-deploy/action.yml@@ -5,8 +5,8 @@# updated version.### !!!-name: openverse/production-nuxt-nuxt-deploy-description: Update the task definition for a production-nuxt-nuxt deployment+name: openverse/production-nuxt-deploy+description: Update the task definition for a production-nuxt deploymentinputs:tag:@@ -84,18 +84,18 @@ runs:# Remove template from the family name (the render action does not support this)sed -i 's/"family": "production-nuxt-template"/"family": "production-nuxt"/g' task-definition.json- - name: Fill in the new image ID in the Amazon ECS task definition- id: task-def- uses: aws-actions/amazon-ecs-render-task-definition@v1+ - name: "Fill in the new nuxt image ID in the Amazon ECS task definition"+ id: "task-def-nuxt"+ uses: "aws-actions/amazon-ecs-render-task-definition@v1"with:task-definition: task-definition.jsoncontainer-name: nuxt- image: ghcr.io/wordpress/openverse-frontend:${{ inputs.tag }}+ image: "ghcr.io/wordpress/openverse-frontend:${{ inputs.tag }}"- name: Deploy Amazon ECS task definitionuses: aws-actions/amazon-ecs-deploy-task-definition@v1with:- task-definition: ${{ steps.task-def.outputs.task-definition }}+ task-definition: ${{ steps.task-def-nuxt.outputs.task-definition }}service: production-nuxtcluster: production-defaultwait-for-service-stability: truediff --git a/.github/actions/staging-deploy/action.yml b/.github/actions/staging-deploy/action.ymlindex e9ceaf79b..5d86dc87f 100644--- a/.github/actions/staging-deploy/action.yml+++ b/.github/actions/staging-deploy/action.yml@@ -5,8 +5,8 @@# updated version.### !!!-name: openverse/staging-nuxt-nuxt-deploy-description: Update the task definition for a staging-nuxt-nuxt deployment+name: openverse/staging-nuxt-deploy+description: Update the task definition for a staging-nuxt deploymentinputs:tag:@@ -84,18 +84,18 @@ runs:# Remove template from the family name (the render action does not support this)sed -i 's/"family": "staging-nuxt-template"/"family": "staging-nuxt"/g' task-definition.json- - name: Fill in the new image ID in the Amazon ECS task definition- id: task-def- uses: aws-actions/amazon-ecs-render-task-definition@v1+ - name: "Fill in the new nuxt image ID in the Amazon ECS task definition"+ id: "task-def-nuxt"+ uses: "aws-actions/amazon-ecs-render-task-definition@v1"with:task-definition: task-definition.jsoncontainer-name: nuxt- image: ghcr.io/wordpress/openverse-frontend:${{ inputs.tag }}+ image: "ghcr.io/wordpress/openverse-frontend:${{ inputs.tag }}"- name: Deploy Amazon ECS task definitionuses: aws-actions/amazon-ecs-deploy-task-definition@v1with:- task-definition: ${{ steps.task-def.outputs.task-definition }}+ task-definition: ${{ steps.task-def-nuxt.outputs.task-definition }}service: staging-nuxtcluster: staging-defaultwait-for-service-stability: true