Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# github repository actions 페이지에 나타날 이름
name: CD for front using github actions

# event trigger
# develop 브랜치에 pull_request가 닫히거나 푸시했을때 실행
on:
push:
branches: [ "develop" ]
release:
types: [created]

permissions:
contents: read
Expand All @@ -31,6 +29,10 @@ jobs:
- name: Build with npm
run: npm run build-only

- name: Create nginxfile.conf
run: touch ./nginxfile.conf
- run: echo "${{ secrets.NGINX_FILE_CONF }}" > ./nginxfile.conf

- name: Create nginx.conf
run: touch ./nginx.conf
- run: echo "${{ secrets.NGINX_CONF }}" > ./nginx.conf
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: CI for front using github actions
on:
pull_request:
types: [ opened, synchronize ]
branches: [ "develop" ]
branches: [ "release" ]

permissions:
contents: read
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create-jira-bug-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ jobs:
- name: Log created issue
run: echo "Jira Issue ${{ steps.issue-parser.outputs.parentKey }}/${{ steps.create.outputs.issue }} was created"

- name: Checkout develop code
- name: Checkout release code
uses: actions/checkout@v4
with:
ref: develop
ref: release
token: ${{ secrets.PAT_TOKEN }}

- name: Create branch with Ticket number
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM nginx
COPY nginxfile.conf /etc/nginx/nginx.conf
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY dist/. /usr/share/nginx/html/
CMD ["nginx", "-g", "daemon off;"]