Skip to content

Commit e026722

Browse files
committed
Merge branch '1.8.x'
2 parents 8ed75e0 + fcc0d42 commit e026722

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/continous-integration.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -187,21 +187,24 @@ jobs:
187187
run: docker build . --file ${{ matrix.image.file }} --tag rasa/rasa:latest${{ matrix.image.tag_ext }} --cache-from rasa/rasa:latest${{ matrix.image.tag_ext }}
188188

189189
- 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'
191191
run: docker push rasa/rasa:latest${{ matrix.image.tag_ext }}
192192

193193
- 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')
195197
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 }}
198201
199202
deploy:
200203
name: Deploy to PyPI
201204
runs-on: ubuntu-latest
202205

203206
# 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')
205208
needs: [quality, test, api, docker] # only run after all other stages succeeded
206209

207210
steps:
@@ -240,6 +243,7 @@ jobs:
240243
GITHUB_REPO_SLUG: ${{ github.repository }}
241244
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
242245
run: |
246+
GITHUB_TAG=${GITHUB_TAG/refs\/tags\//}
243247
sudo apt-get update
244248
sudo apt-get -y install pandoc
245249
pip install -U github3.py pypandoc

0 commit comments

Comments
 (0)