Skip to content

Commit 5e8b3c4

Browse files
authored
fix(ci): use machine executor for deploy jobs (#1261)
* fix(ci): use machine executor for deploy jobs * use machine for deploy_docs
1 parent c975305 commit 5e8b3c4

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.circleci/config.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ httpbin_image: &httpbin_image kennethreitz/httpbin@sha256:2c7abc4803080c22928265
3030
vertica_image: &vertica_image sumitchawla/vertica:latest
3131
rabbitmq_image: &rabbitmq_image rabbitmq:3.7-alpine
3232

33+
machine_executor: &machine_executor
34+
machine:
35+
image: ubuntu-1604:201903-01
36+
environment:
37+
- BOTO_CONFIG: /dev/null
38+
steps:
39+
- &pyenv-set-global
40+
run:
41+
name: Set global pyenv
42+
command: |
43+
pyenv global 3.6.5
44+
3345
commands:
3446
deploy_docs:
3547
description: "Deploy docs"
@@ -686,17 +698,19 @@ jobs:
686698

687699
deploy_master:
688700
# build the master branch releasing development docs and wheels
689-
executor: python38
701+
<<: *machine_executor
690702
steps:
691703
- checkout
704+
- *pyenv-set-global
692705
- deploy_docs:
693706
s3_dir: *s3_dir_dev
694707
- deploy_wheels
695708

696709
deploy_staging:
697-
executor: python38
710+
<<: *machine_executor
698711
steps:
699712
- checkout
713+
- *pyenv-set-global
700714
- deploy_wheels
701715

702716
jinja2:
@@ -733,9 +747,10 @@ jobs:
733747

734748
deploy_docs:
735749
# deploy official documentation
736-
executor: python38
750+
<<: *machine_executor
737751
steps:
738752
- checkout
753+
- *pyenv-set-global
739754
- deploy_docs:
740755
s3_dir: *s3_dir_prod
741756

0 commit comments

Comments
 (0)