Skip to content

Commit

Permalink
circleci: add circleci config
Browse files Browse the repository at this point in the history
  • Loading branch information
zchee committed Aug 19, 2020
1 parent 875c89b commit ce78da9
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
version: 2.1

executors:
circleci-cli:
docker:
- image: circleci/circleci-cli:alpine
python:
docker:
- image: cimg/python:3.8

jobs:
validate:
executor: circleci-cli
steps:
- checkout
- run:
name: Install make and bash
command: |
apk --no-cache add \
bash \
make
- run:
name: Pack orb and run lint
command: |
make validate
lint:
executor: python
steps:
- run:
name: Install yamllint
command: |
pip3 install -U git+https://github.com/adrienverge/yamllint.git
- checkout
- run:
name: Run yamllint
command: |
make yamllint
publish:
executor: circleci-cli
steps:
- checkout
- run:
name: Install make and bash
command: |
apk --no-cache add \
bash \
make
- run:
name: Publish to production orb registry.
command: |
make publish
workflows:
version: 2
workflows:
jobs:
- validate:
context: org-global
- lint:
context: org-global
- publish:
context: org-global
filters:
tags:
only: /^.*/
branches:
ignore: /.*/

0 comments on commit ce78da9

Please sign in to comment.