Skip to content

Commit

Permalink
show POPO version
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueHorn07 committed Oct 27, 2023
1 parent adf50b1 commit c563f21
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/github-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
tags: ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }}
build-args: |
"NEXT_PUBLIC_ENV=${{ env.NEXT_PUBLIC_ENV }}"
"POPO_VERSION=${{ env.IMAGE_TAG }}"
cache-from: type=gha
cache-to: type=gha,mode=max
push: true
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ FROM node:18.18-alpine AS builder
ARG NEXT_PUBLIC_ENV
ENV NEXT_PUBLIC_ENV ${NEXT_PUBLIC_ENV}

# popo version
ARG POPO_VERSION
ENV NEXT_PUBLIC_POPO_VERSION ${POPO_VERSION}

WORKDIR /usr/src/app

COPY package*.json ./
Expand Down
8 changes: 7 additions & 1 deletion components/navbar/menu.item.user.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ const MenuItemUser = () => {
border: 'none',
boxShadow: '0 2px 5px 0px rgba(0, 0, 0, 0.2)',
}}>
<Dropdown.Item text={'로그아웃'} onClick={handleLogout}/>
<Dropdown.Item
text={'로그아웃'}
onClick={handleLogout}
/>
<Dropdown.Item
text={`popo-${process.env.NEXT_PUBLIC_POPO_VERSION}`}
/>
</Dropdown.Menu>
</Dropdown>
</Menu.Item>
Expand Down

0 comments on commit c563f21

Please sign in to comment.