Files
mirror-cathay/bitbucket-pipelines.yml

24 lines
775 B
YAML

pipelines:
branches:
master:
- step:
size: 2x
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 -t registry.71dev/cathaypay-web:dev .
- docker push registry.71dev/cathaypay-web:dev
- 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/cathaypay-web-deployment -n chp
definitions:
services:
docker:
memory: 7128