# 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 - 16g size: 2x services: - docker 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