Advertisement
agir

YAML Google Cloud

Jun 16th, 2022 (edited)
1,460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.55 KB | None | 0 0
  1. version: 2.1
  2.  
  3. orbs:
  4.   gcp-cli: circleci/gcp-cli@2.1.0
  5.  
  6. commands:
  7.   deploy_app:
  8.     steps:
  9.      - gcp-cli/install
  10.       - gcp-cli/initialize
  11.       - run: gcloud app deploy
  12.  
  13. jobs:
  14.   build_and_deploy:
  15.     docker:
  16.       - image: cimg/node:16.13.0
  17.         steps:
  18.          - checkout
  19.           - run:
  20.             command: npm install
  21.           - run:
  22.             command: npm run build
  23.  
  24. workflows:
  25.   version: 2.1
  26. deploy_and_build:
  27.     jobs:
  28.       - deploy_app:
  29.         filters:
  30.           branches:
  31.             only:
  32.               - main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement