0.0.58 • Published 9 months ago

bit-pipe-deploy v0.0.58

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

Bitbucket Pipelines Deployment Scripts

Scripts for building and uploading images. It's used as a cli tool for bitbucket-pipelines. The bpd script requires a configuration file, which contains addresses to the cluster and registry address. The script generates a build.sh file which is executed afterwards directly from the pipeline. The output from buils.sh generates a changes.json file. This file contains the image address to the uploaded image. Ths file is commited via git to the deployment repository. The changes.json file is then read by the bpp (bit-pipe-publish) script which updates the kubernetes workloads.

pipelines:
  branches:
    development:
    - step:
        name: Build API
        image: lmaftuleac/bpd:0.0.55
        services: 
          - docker
        script:
          - bpd --app=api
          - bash build.sh

install

npm install bit-pipe-deploy --global 

config.bpd.json

structure:

{
  "deployment" : {
    "repository":"git@bitbucket.org:opentechdev/deploy-v2.git"
  },
  "branch" : {
    "master": {
      ...
    },
    "development": {
      ...
    }
  }
}

branch configuration accepts two kinds of confguration

  • single project repository
  • monorepo repository

single project config:

    "master": {
      "registryAddress": "europe-west6-etc",
      "registryName": "opentech-projid/opentech",
      "registryAccessKey" : "$GKE_CREDENTIALS",
      "imagePrefix" : "rejection",
      "cluster": "opentech-gcloud",
      "namespace": "default",
      "workload" : "website",
      "dockerfile": "Dockerfile"
    }

monorepo config:

   "master": {
      "registryAddress": "europe-west6-etc",
      "registryName": "opentech-projectid/opentech",
      "registryAccessKey" : "$GKE_CREDENTIALS",
      "imagePrefix" : "google-scraper",
      "cluster": "opentech-gcloud",
      "namespace": "default",
      "monorepo": {
        "apps": [
          {
            "name" : "api",
            "dir": "apps/api",
            "dockerfile": "docker/api.dockerfile",
            "workload": "api"
          },
          {
            "name" : "api",
            "dir": "apps/client",
            "dockerfile": "docker/client.dockerfile",
            "workload": "client"
          }
        ]
      }
   }
0.0.57

9 months ago

0.0.58

9 months ago

0.0.51

10 months ago

0.0.52

10 months ago

0.0.53

10 months ago

0.0.54

10 months ago

0.0.55

10 months ago

0.0.56

10 months ago

0.0.50

10 months ago

0.0.49

10 months ago

0.0.40

11 months ago

0.0.41

11 months ago

0.0.42

11 months ago

0.0.43

11 months ago

0.0.44

11 months ago

0.0.45

11 months ago

0.0.46

11 months ago

0.0.47

11 months ago

0.0.39

1 year ago

0.0.38

1 year ago

0.0.37

1 year ago

0.0.36

1 year ago

0.0.35

1 year ago

0.0.34

1 year ago

0.0.33

1 year ago

0.0.32

1 year ago

0.0.31

1 year ago

0.0.30

1 year ago

0.0.29

1 year ago

0.0.28

1 year ago

0.0.27

1 year ago

0.0.26

1 year ago

0.0.25

1 year ago

0.0.24

1 year ago

0.0.23

1 year ago

0.0.22

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago