Skip to content

Commit

Permalink
fix: acces key
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaisqls committed Aug 21, 2023
1 parent 4c79b8c commit 963b6ca
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/xquare-deployment-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,26 @@ jobs:
commit_user_name: XQUARE Frontend Bot
commit_user_email: teamxquare@gmail.com
commit_author: XQUARE Frontend Bot <teamxquare@gmail.com>


- name: Get access key
id: access_key
run: |
service_name="${{steps.get_service.outputs.SERVICE}}"
if [[ $service_name == "apply" ]]; then
echo "ACCESS_KEY=***" >> $GITHUB_OUTPUT
elif [[ $service_name == "dormitory-admin" ]]; then
echo "ACCESS_KEY=***" >> $GITHUB_OUTPUT
elif [[ $service_name == "feed" ]]; then
echo "ACCESS_KEY=***" >> $GITHUB_OUTPUT
elif [[ $service_name == "school-meal" ]]; then
echo "ACCESS_KEY=***" >> $GITHUB_OUTPUT
fi
- name: Deploy to xquare
uses: team-xquare/xquare-deployment-action@master
with:
environment: prod
xquare_role_arn: ${{ secrets.XQUARE_ROLE_ARN }}
access_key: ${{ steps.access_key.outputs.ACCESS_KEY }}
github_token: ${{ secrets.GHP_TOKEN }}
base_url: services/${{ steps.get_service.outputs.SERVICE }}
config_file_path: services/${{ steps.get_service.outputs.SERVICE }}/.xquare/config.yaml
Expand Down
2 changes: 1 addition & 1 deletion services/apply/.xquare/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ config:
name: apply
service_type: fe
prefix: /apply
port: 3000
port: 3000
2 changes: 1 addition & 1 deletion services/dormitory-admin/.xquare/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ config:
service_type: fe
port: 3000
domain:
prod: admin-test.xquare.app
prod: admin.xquare.app
2 changes: 1 addition & 1 deletion services/feed/.xquare/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ config:
name: feed
service_type: fe
prefix: /feed
port: 3000
port: 3000
2 changes: 1 addition & 1 deletion services/school-meal/.xquare/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
config:
name: school-meal
service_type: fe
prefix: /school-meal
prefix: /school-meal
port: 3000

0 comments on commit 963b6ca

Please sign in to comment.