Gistrec

CircleCI config example

Aug 25th, 2018
261
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.33 KB | None | 0 0
  1. version: 2
  2.  
  3. jobs:
  4.   build:
  5.     working_directory: ~/repo
  6.     # docker:
  7.       # - image: circleci/clojure:lein-2.7.1
  8.     steps:
  9.      - checkout
  10.       - run:
  11.           name: post checkout check
  12.           command: |
  13.            echo $PWD
  14.             ls -aslh .
  15.             ls -aslh ~
  16.             ls -aslh ~/tmp
  17.       - persist_to_workspace:
  18.           root: .
  19.           paths:
  20.            - .
  21.  
  22.   build_site:
  23.     working_directory: ~/tmp
  24.     docker:
  25.       - image: circleci/clojure:lein-2.7.1
  26.     steps:
  27.       - attach_workspace:
  28.           at: ~/tmp
  29.  
  30.       - run:
  31.           name: build
  32.           command: |
  33.            lein run
  34.  
  35.       - persist_to_workspace:
  36.           root: .
  37.           paths:
  38.            - resources/public
  39.  
  40.   deploy:
  41.     working_directory: ~/tmp
  42.     machine:
  43.         enabled: true
  44.  
  45.     steps:
  46.       - attach_workspace:
  47.           at: ~/tmp/resources/public
  48.  
  49.       - run:
  50.           name: Are my assets here?
  51.           command: |
  52.            pwd
  53.             ls -lrt
  54.  
  55.       - run:
  56.           name: Is awscli here?
  57.           command: |
  58.            aws -v
  59.  
  60. workflows:
  61.   version: 2
  62.   build-and-deploy:
  63.     jobs:
  64.      - checkout_code
  65.       - build_site:
  66.           requires:
  67.            - checkout_code
  68.       - deploy:
  69.           requires:
  70.            - checkout_code
  71.             - build_site
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment