diff --git a/.github/workflows/github-action.yaml b/.github/workflows/github-action.yaml index fabdfdf..7fd94d8 100644 --- a/.github/workflows/github-action.yaml +++ b/.github/workflows/github-action.yaml @@ -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 diff --git a/Dockerfile b/Dockerfile index aabd235..a3bc706 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 ./ diff --git a/components/navbar/menu.item.user.jsx b/components/navbar/menu.item.user.jsx index 71bfc2d..ce7e4ec 100644 --- a/components/navbar/menu.item.user.jsx +++ b/components/navbar/menu.item.user.jsx @@ -38,7 +38,13 @@ const MenuItemUser = () => { border: 'none', boxShadow: '0 2px 5px 0px rgba(0, 0, 0, 0.2)', }}> - + +