add pipelines
This commit is contained in:
31
bitbucket-pipelines.yml
Normal file
31
bitbucket-pipelines.yml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user