|
3 | 3 | # Check https://circleci.com/docs/2.0/language-python/ for more details |
4 | 4 | # |
5 | 5 | version: 2 |
| 6 | +references: |
| 7 | + objectrocket-docker-auth: |
| 8 | + auth: |
| 9 | + username: ${DOCKER_USERNAME} |
| 10 | + password: ${DOCKER_PASSWORD} |
| 11 | + context-to-use: |
| 12 | + context: objectrocket-shared |
6 | 13 | jobs: |
7 | 14 | build: |
8 | 15 | docker: |
9 | 16 | # specify the version you desire here |
10 | 17 | # use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers` |
11 | | - - image: objectrocket/circleci-rpm-builder:master |
12 | | - auth: |
13 | | - username: $DOCKER_USER |
14 | | - password: $DOCKER_PASS |
15 | | - |
| 18 | + - image: objectrocket/circleci-rpm-builder:master |
| 19 | + auth: |
| 20 | + username: $DOCKER_USER |
| 21 | + password: $DOCKER_PASS |
| 22 | + |
16 | 23 | # Specify service dependencies here if necessary |
17 | 24 | # CircleCI maintains a library of pre-built images |
18 | 25 | # documented at https://circleci.com/docs/2.0/circleci-images/ |
19 | 26 | # - image: circleci/postgres:9.4 |
20 | 27 |
|
21 | | - environment: |
22 | | - PYTHON_BIN: /usr/local/bin/python2.7 |
| 28 | + environment: |
| 29 | + PYTHON_BIN: /usr/local/bin/python2.7 |
23 | 30 | working_directory: ~/repo |
24 | 31 |
|
25 | 32 | steps: |
26 | | - - checkout |
| 33 | + - checkout |
27 | 34 |
|
28 | 35 | # Download and cache dependencies |
29 | | - - restore_cache: |
30 | | - keys: |
31 | | - - v1-dependencies-{{ checksum "requirements.txt" }} |
| 36 | + - restore_cache: |
| 37 | + keys: |
| 38 | + - v1-dependencies-{{ checksum "requirements.txt" }} |
32 | 39 | # fallback to using the latest cache if no exact match is found |
33 | | - - v1-dependencies- |
34 | | - |
35 | | - - run: |
36 | | - name: set version and build the rpm |
37 | | - command: | |
38 | | - set -x |
39 | | - version=$(cat VERSION) |
40 | | - echo "${version}.${CIRCLE_BUILD_NUM}" > VERSION |
41 | | - make rpm |
42 | | -
|
43 | | - git config user.email "dev@objectrocket.com" |
44 | | - git config user.name "objectrocketdev" |
45 | | - git tag -a $(cat VERSION) -m "Tagged by ${CIRCLE_BUILD_URL}" HEAD |
46 | | - rpm -qa | grep ssh |
47 | | - rpm -ql libssh2-1.4.2-2.el6_7.1.x86_64 |
48 | | - git push --tags origin |
49 | | - |
50 | | - mkdir mongodb_consistent_backup_rpm |
51 | | - cp /root/repo/build/rpm/RPMS/x86_64/mongodb_consistent_backup-$(cat VERSION)-1.el6.x86_64.rpm mongodb_consistent_backup_rpm/ |
52 | | -
|
53 | | - - save_cache: |
54 | | - paths: |
55 | | - - ./venv |
56 | | - key: v1-dependencies-{{ checksum "requirements.txt" }} |
57 | | - |
58 | | - - store_artifacts: |
59 | | - path: mongodb_consistent_backup_rpm |
60 | | - destination: mongodb_consistent_backup |
61 | | - |
| 40 | + - v1-dependencies- |
| 41 | + |
| 42 | + - run: |
| 43 | + name: set version and build the rpm |
| 44 | + command: | |
| 45 | + set -x |
| 46 | + version=$(cat VERSION) |
| 47 | + echo "${version}.${CIRCLE_BUILD_NUM}" > VERSION |
| 48 | + make rpm |
| 49 | +
|
| 50 | + git config user.email "dev@objectrocket.com" |
| 51 | + git config user.name "objectrocketdev" |
| 52 | + git tag -a $(cat VERSION) -m "Tagged by ${CIRCLE_BUILD_URL}" HEAD |
| 53 | + rpm -qa | grep ssh |
| 54 | + rpm -ql libssh2-1.4.2-2.el6_7.1.x86_64 |
| 55 | + git push --tags origin |
| 56 | +
|
| 57 | + mkdir mongodb_consistent_backup_rpm |
| 58 | + cp /root/repo/build/rpm/RPMS/x86_64/mongodb_consistent_backup-$(cat VERSION)-1.el6.x86_64.rpm mongodb_consistent_backup_rpm/ |
| 59 | +
|
| 60 | + - save_cache: |
| 61 | + paths: |
| 62 | + - ./venv |
| 63 | + key: v1-dependencies-{{ checksum "requirements.txt" }} |
| 64 | + |
| 65 | + - store_artifacts: |
| 66 | + path: mongodb_consistent_backup_rpm |
| 67 | + destination: mongodb_consistent_backup |
| 68 | + |
0 commit comments