From c3537b32d069b8861b62973e40dcd89fc47a0d23 Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Mon, 27 Aug 2018 19:08:19 -0400 Subject: [PATCH] add step to deploy to push latest image to kubernetes cluster --- Dockerfile | 13 ------------- deploy.sh | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 73d09545..9460983d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/deploy.sh b/deploy.sh index f79de6bd..9ef39a8b 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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