Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cd-tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jang Donghhoon
cd-tutorial
Commits
c3545f97
Commit
c3545f97
authored
4 years ago
by
dhoonjang
Browse files
Options
Downloads
Patches
Plain Diff
set: gitlab ci/cd
parent
5d38b5fb
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#5018
passed
4 years ago
Stage: install
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.eslintcache
+1
-0
1 addition, 0 deletions
.eslintcache
.gitlab-ci.yml
+61
-0
61 additions, 0 deletions
.gitlab-ci.yml
src/App.tsx
+4
-6
4 additions, 6 deletions
src/App.tsx
with
66 additions
and
6 deletions
.eslintcache
0 → 100644
+
1
−
0
View file @
c3545f97
[{"/Users/dhoonjang/local/cd-tutorial/src/reportWebVitals.ts":"1","/Users/dhoonjang/local/cd-tutorial/src/App.tsx":"2"},{"size":425,"mtime":1608141108348,"results":"3","hashOfConfig":"4"},{"size":513,"mtime":1608141220740,"results":"5","hashOfConfig":"4"},{"filePath":"6","messages":"7","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1izlfld",{"filePath":"8","messages":"9","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/dhoonjang/local/cd-tutorial/src/reportWebVitals.ts",[],"/Users/dhoonjang/local/cd-tutorial/src/App.tsx",[]]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
0 → 100644
+
61
−
0
View file @
c3545f97
image
:
node:latest
stages
:
-
install
-
build
-
deploy
install
:
stage
:
install
script
:
-
apt-get update -qq && apt-get install
-
yarn config set cache-folder .yarn
-
yarn install
artifacts
:
name
:
"
artifacts"
untracked
:
true
expire_in
:
30 mins
paths
:
-
.yarn/
-
node_modules/
rules
:
-
if
:
$CI_COMMIT_REF_NAME == "master"
when
:
always
-
if
:
$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"
when
:
always
-
when
:
never
build
:
stage
:
build
dependencies
:
-
install
script
:
-
yarn build
artifacts
:
paths
:
-
build
expire_in
:
30 mins
rules
:
-
if
:
$CI_COMMIT_REF_NAME == "master"
when
:
on_success
-
if
:
$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"
when
:
on_success
-
when
:
never
deploy
:
image
:
python:latest
stage
:
deploy
dependencies
:
-
build
variables
:
S3_BUCKET_NAME
:
gitlab-cd-tutorial.git.ajou.ac.kr
before_script
:
-
pip install awscli
script
:
-
aws s3 sync build s3://$S3_BUCKET_NAME/ --acl public-read
rules
:
-
if
:
$CI_COMMIT_REF_NAME == "master"
when
:
on_success
-
if
:
$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"
when
:
on_success
-
when
:
never
This diff is collapsed.
Click to expand it.
src/App.tsx
+
4
−
6
View file @
c3545f97
import
React
from
'
react
'
;
import
React
from
"
react
"
;
import
logo
from
'
./logo.svg
'
;
import
logo
from
"
./logo.svg
"
;
import
'
./App.css
'
;
import
"
./App.css
"
;
function
App
()
{
function
App
()
{
return
(
return
(
<
div
className
=
"App"
>
<
div
className
=
"App"
>
<
header
className
=
"App-header"
>
<
header
className
=
"App-header"
>
<
img
src
=
{
logo
}
className
=
"App-logo"
alt
=
"logo"
/>
<
img
src
=
{
logo
}
className
=
"App-logo"
alt
=
"logo"
/>
<
p
>
<
p
>
Jang Dong Hoon - dhoonjang
</
p
>
Edit
<
code
>
src/App.tsx
</
code
>
and save to reload.
</
p
>
<
a
<
a
className
=
"App-link"
className
=
"App-link"
href
=
"https://reactjs.org"
href
=
"https://reactjs.org"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment