Files
rmutr_report/bitbucket-pipelines.yml
kamonwan taengsuk 3915b0f0ab add pipelines
2023-08-02 13:46:44 +07:00

31 lines
1.2 KiB
YAML

# 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