Skip to content

Commit

Permalink
add step to deploy to push latest image to kubernetes cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
catarak committed Aug 27, 2018
1 parent 89560fd commit c3537b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@ ENV APP_HOME=/usr/src/app \
RUN mkdir -p $APP_HOME
WORKDIR $APP_HOME
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
ENV NODE_ENV development
Expand Down
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ gcloud --quiet container clusters get-credentials $CLUSTER_NAME_PRD
kubectl config view
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

0 comments on commit c3537b3

Please sign in to comment.