-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
58 lines (57 loc) · 1.69 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2
jobs:
build:
machine: true
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
# - run:
# name: Install pycodestyle
# command: sudo pip install pycodestyle
# - run:
# name: run linter
# command: |
# pycodestyle --ignore=E501,E266,E302,E126,E226,E261,E123 .
#
- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements.txt" }}
deploy:
docker:
- image: astronomerinc/ap-airflow:0.10.3-1.10.5-onbuild
steps:
- checkout
- setup_remote_docker:
docker_layer_caching: true
# Install via apk on alpine based images
- run:
name: Install Docker client
command: apk add docker-cli
- run:
name: Push to Docker Hub
command: |
TAG=0.1.$CIRCLE_BUILD_NUM
docker build -t registry.gcp0001.us-east4.astronomer.io/zodiacal-exploration-9500/airflow:ci-1 .
docker login registry.gcp0001.us-east4.astronomer.io -u pritt-test -p 3d71fe9616d67fcf0071ca96057b15ec
docker push registry.gcp0001.us-east4.astronomer.io/zodiacal-exploration-9500/airflow:ci-1
workflows:
version: 2
build-deploy:
jobs:
- build
- deploy:
requires:
- build
filters:
branches:
only:
- master