@@ -187,21 +187,24 @@ jobs:
187
187
run : docker build . --file ${{ matrix.image.file }} --tag rasa/rasa:latest${{ matrix.image.tag_ext }} --cache-from rasa/rasa:latest${{ matrix.image.tag_ext }}
188
188
189
189
- name : Push image with latest tag 📦
190
- if : github.event_name == 'push' && github.event. ref == 'refs/heads/master'
190
+ if : github.event_name == 'push' && github.ref == 'refs/heads/master'
191
191
run : docker push rasa/rasa:latest${{ matrix.image.tag_ext }}
192
192
193
193
- name : Push image with ${{github.ref}} tag 📦
194
- if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
194
+ env :
195
+ GITHUB_TAG : ${{ github.ref }}
196
+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
195
197
run : |
196
- docker tag rasa/rasa:latest${{ matrix.image.tag_ext }} rasa/rasa:${{github.ref}}${{ matrix.image.tag_ext }}
197
- docker push rasa/rasa:${{github.ref}}${{ matrix.image.tag_ext }}
198
+ GITHUB_TAG=${GITHUB_TAG/refs\/tags\//}
199
+ docker tag rasa/rasa:latest${{ matrix.image.tag_ext }} rasa/rasa:${GITHUB_TAG}${{ matrix.image.tag_ext }}
200
+ docker push rasa/rasa:${GITHUB_TAG}${{ matrix.image.tag_ext }}
198
201
199
202
deploy :
200
203
name : Deploy to PyPI
201
204
runs-on : ubuntu-latest
202
205
203
206
# deploy will only be run when there is a tag available
204
- if : github.event_name == 'push' && startsWith(github.event. ref, 'refs/tags')
207
+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
205
208
needs : [quality, test, api, docker] # only run after all other stages succeeded
206
209
207
210
steps :
@@ -240,6 +243,7 @@ jobs:
240
243
GITHUB_REPO_SLUG : ${{ github.repository }}
241
244
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
242
245
run : |
246
+ GITHUB_TAG=${GITHUB_TAG/refs\/tags\//}
243
247
sudo apt-get update
244
248
sudo apt-get -y install pandoc
245
249
pip install -U github3.py pypandoc
0 commit comments