File tree 3 files changed +29
-1
lines changed
3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,24 @@ jobs:
122
122
name : Release to PyPI
123
123
command : tox -e release
124
124
125
+ publish_docker :
126
+ working_directory : ~/project
127
+ machine :
128
+ image : ubuntu-2004:202111-02
129
+ steps :
130
+ - checkout
131
+ - run :
132
+ name : Build girder_worker docker
133
+ command : docker build --force-rm -t girder/girder_worker .
134
+ - run :
135
+ name : Publish images to Docker Hub
136
+ command : |
137
+ echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
138
+ docker push girder/girder_worker:latest
139
+ if [[ $CIRCLE_TAG =~ ^v.*$ ]]; then
140
+ docker tag girder/girder_worker:latest "girder/girder_worker:$CIRCLE_TAG"
141
+ docker push "girder/girder_worker:$CIRCLE_TAG"
142
+ fi
125
143
126
144
workflows :
127
145
version : 2
@@ -146,3 +164,12 @@ workflows:
146
164
branches :
147
165
only :
148
166
- master
167
+ - publish_docker :
168
+ requires :
169
+ - release
170
+ filters :
171
+ tags :
172
+ only : /^v.*/
173
+ branches :
174
+ only :
175
+ - master
Original file line number Diff line number Diff line change
1
+ env
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -qy tzdata
15
15
libpython3-dev && \
16
16
apt-get clean && rm -rf /var/lib/apt/lists/*
17
17
18
- RUN wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py
18
+ RUN wget https://bootstrap.pypa.io/pip/3.6/ get-pip.py && python3 get-pip.py
19
19
20
20
21
21
FROM base as build
You can’t perform that action at this time.
0 commit comments