add step to deploy to push latest image to kubernetes cluster
This commit is contained in:
parent
89560fdae7
commit
c3537b32d0
2 changed files with 1 additions and 14 deletions
13
Dockerfile
13
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue