▼▼▼
git pull & fetch
https://www.freecodecamp.org/korean/news/git-fetch-vs-pull/
git merge & rebase git fast forward
https://backlog.com/git-tutorial/kr/stepup/stepup1_4.html
CI/CD란?
https://seosh817.tistory.com/104
[CI/CD] CI/CD란? - 지속적 통합(Continuous Integration)/지속적 배포(Continuous Deployment) 기본개념
매번 개발자가 코드를 수정하고 빌드와 테스트를 하고 배포까지 한다면 상당히 많은 시간이 소요됩니다. 하지만 git에 코드를 올리는 것만으로도 누군가가 빌드와 테스트, 배포까지 해준다면,
seosh817.tistory.com
어떤걸 쓸까? GitHub Actions / Bitbucket Pipelines / GitLab CI/CD
https://rushflow.io/blog/github-actions-vs-bitbucket-pipelines-vs-gitlab-cicd
GitHub Actions vs BitBucket Pipelines vs GitLab CI/CD - Rushflow
Choosing a CI/CD tool to build, test, and deploy your code can be hard due to the wide number of options available. In this article, I describe the main characteristics of three of the most known services.
rushflow.io
GitHub Actions
https://devocean.sk.com/blog/techBoardDetail.do?ID=163365
GitHub Action 2년간 사용기
devocean.sk.com
강좌- 생활코딩
**검색어
github action event type - Events that trigger workflows
* 로컬에서 코드 수정 후 git push를 하면 git pull 함과 동시에 npm run build 후 npm run deploy하여 반영한다.
- git SSH 키 등록해서 private repo pull 자유롭게 하자
https://goddaehee.tistory.com/254https://hyelmy.github.io/%EB%81%84%EC%A0%81%EB%81%84%EC%A0%81/setting_sshkey/
현 프로세스 확인
ps -ef | grep {궁금한 프로세스 이름}
** 중요 강의 **
1. runner 설치
진행할 repository - setting - action - runner로 들어가서 이처럼 실행
sudo ./svc.sh install
sudo ./svc.sh start
2. sudo chmod +x /home
'' /home/ubuntu/
... runner 경로까지
** chmod +x의 의미와 shell script 명령어 작성 방법 **
- echo $0으로 확인해보면 현재 bash를 사용 중인 것을 알 수 있다.
/workspace/linux/shell_script# echo $0
/bin/bash
- backup 파일을 만들고 shell script 명령어를 작성한다. 운영 프로그램이 실행되면 #!/bin/bash 를 확인하고 bash에 해당하는 명령어가 처리되도록 한다. 만약 test라는 디렉토리가 없다면 test 디렉토리를 만드는 명령어이다. 스크립트가 작성되면 fi로 끝내준다.
#!/bin/bash
if ! [ -d test ]; then
mkdir test
fi
cp *.log test
- backup 파일을 실행하기 위해서 ./backup을 치면 허가 거부라고 나온다.
/workspace/linux/shell_script# ./backup
bash: ./backup: 허가 거부
- ls -l로 확인해보면 backup 파일이 -rw-rw-r-- 실행할 수 있는 권한이 없는것을 확인할 수 있다.
/workspace/linux/shell_script# ls -l
합계 8
-rw-rw-r-- 1 root root 0 8월 20 06:15 a.log
-rw-rw-r-- 1 root root 0 8월 20 06:15 b.log
-rw-rw-r-- 1 root root 65 8월 20 06:39 backup
-rw-rw-r-- 1 root root 0 8월 20 06:15 c.log
-rw-rw-r-- 1 root root 0 8월 20 06:15 d.log
drwxrwxr-x 2 root root 4096 8월 20 06:23 test
- chmod +x backup 명령어로 backup 파일에 실행할수 있는 권한을 준다. (+x는 executable 뜻이다)
- 다시 ls -l 명령어로 확인해보면 backup 파일 앞에 실행가능한 권한인 x가 표시된 것을 확인할 수 있다.
/workspace/linux/shell_script# chmod +x backup
/workspace/linux/shell_script# ls -l
합계 8
-rw-rw-r-- 1 root root 0 8월 20 06:15 a.log
-rw-rw-r-- 1 root root 0 8월 20 06:15 b.log
-rwxrwxr-x 1 root root 65 8월 20 06:39 backup
-rw-rw-r-- 1 root root 0 8월 20 06:15 c.log
-rw-rw-r-- 1 root root 0 8월 20 06:15 d.log
drwxrwxr-x 2 root root 4096 8월 20 06:23 test
출처: https://velog.io/@coding_ending/Linux-Chmod-x-%ED%8C%8C%EC%9D%BC%EB%AA%85
'Git' 카테고리의 다른 글
git 수정 update 후 반영하기 (0) | 2024.03.27 |
---|---|
Error Git pull (merge, rebase, fast-forward only) (0) | 2023.02.10 |
git pull 취소 (0) | 2023.02.09 |
Error :this exceeds github's file size limit of 100.00 mb (0) | 2023.01.30 |
git hub에 코드/프로젝트 올리기 (0) | 2023.01.28 |