k8s-bitbucket-pipeline

0.3.52 • Public • Published

README

Auto deployment in Cloudflare workers for static code (react, angular, vanilla, html & css, ...)

How do I get set up?

bitbucket-pipelines.yml

We can't push a .env in the repo so, we need to add the environment variables

            - export NODE_ENV=dev
            - export REACT_APP_API_DOMAIN=$STAGING_REACT_APP_API_DOMAIN
            - export REACT_APP_API_DOMAIN_V1=$STAGING_REACT_APP_API_DOMAIN_V1

Add the following lines to the bitbucket-pipelines.yml step you want to configure

            - npm i cloudflare-static-deployment
            - npx deploy -e staging 

Contribution guidelines

  • Writing tests
  • Code review
  • Other guidelines

Who do I talk to?

  • Repo owner or admin
  • Other community or team contact

external-ports or external-ips

add this in Workspace variables for bitbucket this way:

K8S_NODE_${i}=${port}

i.e.

K8S_NODE_1 = 1.1.1.1 K8S_NODE_2 = 1.1.1.2

Readme

Keywords

none

Package Sidebar

Install

npm i k8s-bitbucket-pipeline

Weekly Downloads

178

Version

0.3.52

License

ISC

Unpacked Size

19.1 kB

Total Files

18

Last publish

Collaborators

  • klassapp