diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml new file mode 100644 index 0000000..e6f7596 --- /dev/null +++ b/bitbucket-pipelines.yml @@ -0,0 +1,31 @@ +# This is a sample build configuration for .NET Core. +# Check our guides at https://confluence.atlassian.com/x/5Q4SMw for more examples. +# Only use spaces to indent your .yml configuration. +# ----- +# You can specify a custom docker image from Docker Hub as your build environment. +image: atlassian/default-image:2 +options: + docker: true +pipelines: + default: + - step: + runs-on: + - self.hosted + - linux + caches: + - dotnetcore + script: # Modify the commands below to build your repository. + # - dotnet restore + # - dotnet build + - docker login --username $DOCKER_USERNAME --password $DOCKER_PASSWORD + - docker build -f Dockerfile.dev -t registry.71dev.com/rmutr_report:latest . + - docker push registry.71dev.com/rmutr_report:latest + - step: + runs-on: + - self.hosted + - linux + name: deploy to kubernates + image: atlassian/pipelines-kubectl + script: + - echo $KUBE_CONFIG | base64 -d > kubeconfig + - kubectl --insecure-skip-tls-verify --kubeconfig=kubeconfig --namespace=rmutr rollout restart deployment/rmutr-report \ No newline at end of file