Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use json by website #2411

Merged
merged 1 commit into from
Feb 21, 2025
Merged

chore: use json by website #2411

merged 1 commit into from
Feb 21, 2025

Conversation

takaishi
Copy link
Contributor

@takaishi takaishi commented Sep 29, 2024

Currently, we use json for data of talks and speakers.

#!/usr/bin/env bash

ABBR=cnds2024
export AWS_REGION=ap-northeast-1

TASK_ARN=$(aws ecs list-tasks --output text --cluster dreamkast-prod --service-name dreamkast --query "taskArns[0]")

aws ecs execute-command --interactive --cluster dreamkast-prod --task $TASK_ARN --container dreamkast --command "bundle exec rake util:render_json_for_website[$ABBR]"
aws ecs execute-command --interactive --cluster dreamkast-prod --task $TASK_ARN --container dreamkast --command "cat ${ABBR}_speakers.json" \
  | gsed -z 's/\nThe Session Manager plugin was installed successfully\. Use the AWS CLI to start a session\.\n\n\nStarting session with SessionId: .*\n\[/\[/g' \
  | gsed 's/^Exiting session with sessionId:.*$//g' \
  > ./src/data/speakers/$ABBR.json

aws ecs execute-command --interactive --cluster dreamkast-prod --task $TASK_ARN --container dreamkast --command "cat ${ABBR}_talks.json" \
  | gsed -z 's/\nThe Session Manager plugin was installed successfully\. Use the AWS CLI to start a session\.\n\n\nStarting session with SessionId: .*\n\[/\[/g' \
  | gsed 's/^Exiting session with sessionId:.*$//g' \
  > ./src/data/talks/$ABBR.json

@takaishi takaishi self-assigned this Sep 29, 2024
@gitops-for-cloudnativedays gitops-for-cloudnativedays bot added the reviewapps Build ReviewApp environment automatically if this label is granted label Sep 29, 2024
gitops-for-cloudnativedays bot pushed a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Sep 29, 2024
Copy link

gitops-for-cloudnativedays bot added a commit to cloudnativedaysjp/dreamkast-infra that referenced this pull request Sep 29, 2024
Copy link

Simplecov Report

Covered Threshold
63.23% 60%

@github-actions github-actions bot removed the reviewapps Build ReviewApp environment automatically if this label is granted label Oct 3, 2024
@takaishi takaishi marked this pull request as ready for review February 21, 2025 13:51
@takaishi takaishi merged commit 5598a5e into main Feb 21, 2025
7 checks passed
@takaishi takaishi deleted the chore/render-json branch February 21, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant