fix(ci): git safe.directory 허용 (root runner → chpark 소유 repo)
Deploy / deploy (push) Successful in 1m17s
Deploy / deploy (push) Successful in 1m17s
This commit is contained in:
@@ -15,16 +15,16 @@ jobs:
|
|||||||
- name: Sync server repo
|
- name: Sync server repo
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
echo "::group::Sync"
|
git config --global --add safe.directory /home/chpark/insurance
|
||||||
cd /home/chpark
|
cd /home/chpark
|
||||||
if [ ! -d insurance/.git ]; then
|
if [ ! -d insurance/.git ]; then
|
||||||
git clone https://git.junggomoa.com/chpark/insurance.git
|
git clone https://git.junggomoa.com/chpark/insurance.git
|
||||||
|
chown -R chpark:chpark insurance
|
||||||
fi
|
fi
|
||||||
cd insurance
|
cd insurance
|
||||||
git fetch origin master
|
git fetch origin master
|
||||||
git reset --hard origin/master
|
git reset --hard origin/master
|
||||||
git log -1 --oneline
|
git log -1 --oneline
|
||||||
echo "::endgroup::"
|
|
||||||
|
|
||||||
- name: Deploy to k3s
|
- name: Deploy to k3s
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user