diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 427cbad..1a979a8 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -20,7 +20,7 @@ pipelines: name: Build and Test script: - IMAGE_NAME=$BITBUCKET_REPO_SLUG - - docker build . --file k8s/linode-autoscaler/Dockerfile --tag ${IMAGE_NAME} + - docker build . --file k8s/Dockerfile-autoscaler --tag ${IMAGE_NAME} services: - docker caches: @@ -36,7 +36,7 @@ pipelines: name: Build and Test script: - IMAGE_NAME=linode-autoscaler - - docker build . --file k8s/linode-autoscaler/Dockerfile --tag ${IMAGE_NAME} + - docker build . --file k8s/Dockerfile-autoscaler --tag ${IMAGE_NAME} - docker save ${IMAGE_NAME} --output "${IMAGE_NAME}.tar" services: - docker diff --git a/k8s/Dockerfile-autoscaler b/k8s/Dockerfile-autoscaler new file mode 100644 index 0000000..fa0e736 --- /dev/null +++ b/k8s/Dockerfile-autoscaler @@ -0,0 +1,3 @@ +FROM meezaan/linode-k8s-autoscaler + +COPY video-cluster-kubeconfig.yaml /root/.kube/config \ No newline at end of file diff --git a/k8s/linode-autoscaler/Dockerfile b/k8s/linode-autoscaler/Dockerfile deleted file mode 100644 index aff89e3..0000000 --- a/k8s/linode-autoscaler/Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM meezaan/linode-k8s-autoscaler - -COPY ../video-cluster-kubeconfig.yaml /root/.kube/config \ No newline at end of file