add step to deploy to push latest image to kubernetes cluster

This commit is contained in:
Cassie Tarakajian 2018-08-27 19:08:19 -04:00
parent 89560fdae7
commit c3537b32d0
2 changed files with 1 additions and 14 deletions

View file

@ -4,19 +4,6 @@ ENV APP_HOME=/usr/src/app \
RUN mkdir -p $APP_HOME RUN mkdir -p $APP_HOME
WORKDIR $APP_HOME WORKDIR $APP_HOME
EXPOSE 8000 EXPOSE 8000
# EXPOSE 80
# EXPOSE 443
ARG API_URL
ARG S3_BUCKET
ARG AWS_REGION
ARG S3_BUCKET_URL_BASE
ARG FORCE_TO_HTTPS
ENV API_URL=$API_URL
ENV S3_BUCKET=$S3_BUCKET
ENV AWS_REGION=$AWS_REGION
ENV S3_BUCKET_URL_BASE=$S3_BUCKET_URL_BASE
ENV FORCE_TO_HTTPS=$FORCE_TO_HTTPS
FROM base as development FROM base as development
ENV NODE_ENV development ENV NODE_ENV development

View file

@ -20,4 +20,4 @@ gcloud --quiet container clusters get-credentials $CLUSTER_NAME_PRD
kubectl config view kubectl config view
kubectl config current-context kubectl config current-context
# kubectl set image deployment/${KUBE_DEPLOYMENT_NAME} ${KUBE_DEPLOYMENT_CONTAINER_NAME}=gcr.io/${PROJECT_NAME_PRD}/${DOCKER_IMAGE_NAME}:$TRAVIS_COMMIT kubectl set image deployment/${KUBE_DEPLOYMENT_NAME} ${KUBE_DEPLOYMENT_CONTAINER_NAME}=index.docker.io/$DOCKER_USERNAME/$DOCKER_REPOSITORY:$TRAVIS_COMMIT