This commit is contained in:
kamonwan taengsuk
2023-08-02 14:31:28 +07:00
parent 56430a5db4
commit 54a10be954
17 changed files with 71 additions and 39 deletions

View File

@@ -1,22 +1,16 @@
# 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:
size: 2x
services:
- docker
runs-on:
- self.hosted
- linux
caches:
- dotnetcore
script: # Modify the commands below to build your repository.
# - dotnet restore
# - dotnet build
script:
- 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
@@ -24,8 +18,12 @@ pipelines:
runs-on:
- self.hosted
- linux
name: deploy to kubernates
name: Deploy
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
- kubectl --insecure-skip-tls-verify --kubeconfig=kubeconfig rollout restart deployment/rmutr_report
definitions:
services:
docker:
memory: 7128