diff --git a/README.md b/README.md index b58e0af830ec5dbc90534e641396406fd17bf11c..d8e784c634a217a78f6dcf8f6446cbcc9899194e 100644 --- a/README.md +++ b/README.md @@ -1,46 +1,20 @@ -# Getting Started with Create React App +# GitLab CI/CD로 자동 배포 구현 -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). +DEPLOYED_URL : <http://gitlab-cd-tutorial.git.ajou.ac.kr.s3-website.ap-northeast-2.amazonaws.com> -## Available Scripts +## 1. [.gitlab-ci.yml] 파일에 파이프라인 구축 -In the project directory, you can run: +- install : project를 구동시키기 위해 필요한 라이브러리 다운로드 +- build : code를 실행시키기 위해 최적환 된 파일로 빌드 +- deploy : 빌드된 결과물을 aws s3에 업로드 (public read 설정) -### `yarn start` +## 2. AWS에 S3 버킷 생성 -Runs the app in the development mode.\ -Open [http://localhost:3000](http://localhost:3000) to view it in the browser. +- s3 bucket 생성 +- s3 퍼블릭 권한 설정 +- 정적 웹사이트 호스팅 설정 -The page will reload if you make edits.\ -You will also see any lint errors in the console. +## 3. GitLab repo에 CI/CD를 위한 설정 -### `yarn test` - -Launches the test runner in the interactive watch mode.\ -See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. - -### `yarn build` - -Builds the app for production to the `build` folder.\ -It correctly bundles React in production mode and optimizes the build for the best performance. - -The build is minified and the filenames include the hashes.\ -Your app is ready to be deployed! - -See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. - -### `yarn eject` - -**Note: this is a one-way operation. Once you `eject`, you can’t go back!** - -If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. - -Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. - -You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. - -## Learn More - -You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). - -To learn React, check out the [React documentation](https://reactjs.org/). +- gitlab runner 등록 +- aws 접속을 위한 variables 등록 (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)