fix pipeline

This commit is contained in:
Victor Barba Martin 2021-07-16 17:23:35 +02:00
parent 6d922da8e3
commit acbb82ee35
1 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ pipelines:
name: Build and Test
script:
- IMAGE_NAME=$BITBUCKET_REPO_SLUG
- docker build . --file Dockerfile --tag ${IMAGE_NAME}
- docker build . --file k8s/linode-autoscaler/Dockerfile --tag ${IMAGE_NAME}
services:
- docker
caches:
@ -36,7 +36,7 @@ pipelines:
name: Build and Test
script:
- IMAGE_NAME=linode-autoscaler
- docker build . --file linode-autoscaler/Dockerfile --tag ${IMAGE_NAME}
- docker build . --file k8s/linode-autoscaler/Dockerfile --tag ${IMAGE_NAME}
- docker save ${IMAGE_NAME} --output "${IMAGE_NAME}.tar"
services:
- docker
@ -66,7 +66,7 @@ pipelines:
deployment: production
script:
- IMAGE="gcr.io/$GCLOUD_PROJECT/$BITBUCKET_REPO_SLUG:prod-0.1.$BITBUCKET_BUILD_NUMBER"
- sed -i "s|{{linode_autoscaler_image}}|$IMAGE|g" k8s/webrtc-be-daemonset.yaml
- sed -i "s|{{linode_autoscaler_image}}|$IMAGE|g" k8s/linode-autoscaler/webrtc-be-autoscaler.yaml
- pipe: atlassian/kubectl-run:1.1.2
variables:
KUBE_CONFIG: $KUBE_CONFIG