Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Update deployment actions using new definitions #2123

Merged
merged 2 commits into from
Feb 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/actions/production-deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 deployment

inputs:
tag:
Expand Down Expand Up @@ -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.json
container-name: nuxt
image: ghcr.io/wordpress/openverse-frontend:${{ inputs.tag }}
image: "ghcr.io/wordpress/openverse-frontend:${{ inputs.tag }}"

- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def.outputs.task-definition }}
task-definition: ${{ steps.task-def-nuxt.outputs.task-definition }}
service: production-nuxt
cluster: production-default
wait-for-service-stability: true
Expand Down
14 changes: 7 additions & 7 deletions .github/actions/staging-deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 deployment

inputs:
tag:
Expand Down Expand Up @@ -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.json
container-name: nuxt
image: ghcr.io/wordpress/openverse-frontend:${{ inputs.tag }}
image: "ghcr.io/wordpress/openverse-frontend:${{ inputs.tag }}"

- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def.outputs.task-definition }}
task-definition: ${{ steps.task-def-nuxt.outputs.task-definition }}
service: staging-nuxt
cluster: staging-default
wait-for-service-stability: true
Expand Down