Files
rmutr_report/bitbucket-pipelines.yml
kamonwan taengsuk 63190b8aa3 add ro 6
2023-08-03 14:42:43 +07:00

27 lines
894 B
YAML

pipelines:
branches:
master:
- step:
runs-on:
- self.hosted
- linux
- 8x
size: 8x
services:
- docker
caches:
- docker
script: # Modify the commands below to build your repository.
- 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:
name: Deploy to kubernates
image: atlassian/pipelines-kubectl
script:
- echo $KUBE_CONFIG_DELL | base64 -d > kubeconfig
- kubectl --insecure-skip-tls-verify --kubeconfig=kubeconfig rollout restart deployment/rmutr-report -n rmutr
definitions:
services:
docker:
memory: 14336