-
Notifications
You must be signed in to change notification settings - Fork 37
/
.drone.yml
executable file
·47 lines (43 loc) · 1.52 KB
/
.drone.yml
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
pipeline:
build:
image: astronomerio/ap-build:0.0.7
commands:
- docker build -t registry.democluster.astronomer-trials.com/elementary-rocket-7360/airflow:ci-${DRONE_BUILD_NUMBER} .
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
event: push
branch: [ master, release-* ]
push:
image: astronomerio/ap-build:0.0.7
commands:
- echo $${ASTRO_API_KEY}
- docker login registry.democluster.astronomer-trials.com -u _ -p $${ASTRO_API_KEY}
- docker push registry.democluster.astronomer-trials.com/elementary-rocket-7360/airflow:ci-${DRONE_BUILD_NUMBER}
secrets: [ astro_api_key ]
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
event: push
branch: [ master, release-* ]
build-dev:
image: astronomerio/ap-build:0.0.7
commands:
- docker build -t registry.democluster.astronomer-trials.com/meteoric-cosmic-6397/airflow:ci-${DRONE_BUILD_NUMBER} .
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
event: push
branch: [ dev, release-* ]
push-dev:
image: astronomerio/ap-build:0.0.7
commands:
- echo $${ASTRO_API_KEY}
- docker login registry.democluster.astronomer-trials.com -u _ -p $${ASTRO_API_KEY}
- docker push registry.democluster.astronomer-trials.com/meteoric-cosmic-6397/airflow:ci-${DRONE_BUILD_NUMBER}
secrets: [ astro_api_key ]
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
event: push
branch: [ dev, release-* ]