Skip to content

categolj/blog-frontend-old

Repository files navigation

Blog Frontend

image

kubectl create -n blog secret generic blog-frontend \
  --from-literal=predender-token=${PRERENDER_TOKEN} \
  --dry-run -o yaml > k8s/blog-frontend-secret.yml
export REACT_APP_BLOG_API=https://blog-api.ik.am
export REACT_APP_BLOG_UI=https://blog.ik.am
BOOT_VERSION=$(grep '<version>' pom.xml | head -n 1 | sed -e 's|<version>||g' -e 's|</version>||g' -e 's|<.*>||g' -e 's| ||g')
./mvnw clean package -Dspring-boot.version=${BOOT_VERSION} -DskipTests=true  && ./build-image.sh 

kbld -f k8s | kubectl apply -f -