Skip to content

Commit

Permalink
fix(all): 깃허브 접근 관련 사용자 정보 추가
Browse files Browse the repository at this point in the history
변경 후
- 해당 변경 사항 반영
  • Loading branch information
kaswhy committed Nov 13, 2024
1 parent 9bcb9a0 commit 19aad2e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ jobs:
- name: Checkout source code
uses: actions/checkout@v2

- name: Set up Git credentials
run: echo "https://${{ secrets.GH_USERNAME }}:${{ secrets.GH_PAT }}@github.com" > ~/.git-credentials

- name: Configure Git to use credentials from file
run: git config --global credential.helper store

# 파일 및 폴더를 압축하여 server.zip으로 저장
- name: Zip distributions
run: zip -r server.zip .
Expand Down
9 changes: 9 additions & 0 deletions scripts/initialize.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
# Parameter Store에서 GitHub 자격 증명을 가져오기
GH_USERNAME=$(aws ssm get-parameter --name "/github/username" --with-decryption --query "Parameter.Value" --output text)
GH_PAT=$(aws ssm get-parameter --name "/github/token" --with-decryption --query "Parameter.Value" --output text)

# GitHub 자격 증명 파일 설정
echo "https://${GH_USERNAME}:${GH_PAT}@github.com" > ~/.git-credentials
git config --global credential.helper store


cd /home/ubuntu/Server
git pull origin master

0 comments on commit 19aad2e

Please sign in to comment.