amirmoghi3
parent
cb0a978a11
commit
8510d95080
|
@ -0,0 +1 @@
|
|||
.env.local
|
|
@ -0,0 +1,2 @@
|
|||
NEXT_PUBLIC_URL=amirmoghi3.ir
|
||||
NODE_OPTIONS=--max_old_space_size=4098
|
|
@ -0,0 +1,26 @@
|
|||
FROM registry.vnfco.ir/library/node:14-alpine AS deps
|
||||
RUN apk add --no-cache libc6-compat
|
||||
WORKDIR /app
|
||||
COPY package.json ./
|
||||
RUN yarn install --production
|
||||
|
||||
|
||||
FROM registry.vnfco.ir/library/node:14-alpine AS builder
|
||||
WORKDIR /app
|
||||
ARG NODE_ENV=production
|
||||
COPY . .
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
RUN yarn run build
|
||||
|
||||
|
||||
FROM registry.vnfco.ir/library/node:14-alpine AS runner
|
||||
WORKDIR /app
|
||||
ARG NODE_ENV=production
|
||||
COPY --from=builder /app/public ./public
|
||||
COPY --from=builder /app/.next ./.next
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY --from=builder /app/package.json ./package.json
|
||||
COPY --from=builder /app/.env.production ./.env.production
|
||||
EXPOSE 3000
|
||||
ENV PORT 3000
|
||||
CMD ["node_modules/.bin/next", "start"]
|
|
@ -0,0 +1,14 @@
|
|||
#/!bin/sh
|
||||
defaultVersionValue=$(head -1 .version);
|
||||
read -p "Enter Version : " version
|
||||
version=${version:-$defaultVersionValue}
|
||||
echo "version : $version"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
docker build -t registry.vnfco.ir/amirmoghi3/me:latest -t registry.vnfco.ir/amirmoghi3/me:$version . || exit 1;
|
||||
docker push registry.vnfco.ir/ig/website:latest || exit 1;
|
||||
docker push registry.vnfco.ir/ig/website:$version || exit 1;
|
||||
|
|
@ -1,16 +1,23 @@
|
|||
|
||||
type Props = {
|
||||
title: string,
|
||||
description: string,
|
||||
tags: string[],
|
||||
year?: string | number,
|
||||
url?: string,
|
||||
isLunched?: boolean
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
const Journey = ({ title, description, tags, year, url, isLunched }) => {
|
||||
const Journey = ({ title, description, tags, year, url, isLunched }: Props) => {
|
||||
|
||||
return (
|
||||
<div className="w-52 bg-dark-primary rounded-md flex flex-col p-3 my-2 mx-3">
|
||||
<h3 className="text-2xl font-bold bg-gold text-dark-primary rounded-lg px-1 py-2">{title}</h3>
|
||||
<p className="text-secondary opacity-80 text-sm text-left px-1 my-2">{description}</p>
|
||||
<div className="flex flex-row flex-wrap ">
|
||||
{tags.map(tag => (
|
||||
<p className="text-dark-primary bg-secondary rounded-md p-1 opacity-80 text-xs m-1">
|
||||
{tags.map((tag, i) => (
|
||||
<p key={i} className="text-dark-primary bg-secondary rounded-md p-1 opacity-80 text-xs m-1">
|
||||
{`#${tag}`}
|
||||
</p>
|
||||
))}
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
|
||||
type Props = {
|
||||
title: string,
|
||||
percent: number,
|
||||
|
||||
}
|
||||
|
||||
export const LinearSpeacialistBar = ({ title, percent }) => {
|
||||
export const LinearSpeacialistBar = ({ title, percent }: Props) => {
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
|
|
@ -308,7 +308,7 @@ const Resume: NextPage = () => {
|
|||
<>
|
||||
<Head>
|
||||
<title>
|
||||
رزومه امیرحسین مقیسه
|
||||
امیرحسین مقیسه که بود و چه کرد ؟
|
||||
</title>
|
||||
</Head>
|
||||
<div className="flex flex-col lg:grid lg:grid-flow-row lg:grid-cols-5 p-2 text-secondary">
|
||||
|
|
Loading…
Reference in New Issue