only push docker image on master

This commit is contained in:
Son NK 2020-11-26 10:04:39 +01:00
parent e2f0a72ab7
commit 4c1bf68d86

View file

@ -19,7 +19,6 @@ jobs:
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- uses: actions/cache@v1 - uses: actions/cache@v1
with: with:
path: ~/.cache/poetry path: ~/.cache/poetry
@ -42,7 +41,7 @@ jobs:
pytest pytest
- name: Publish to Docker Registry - name: Publish to Docker Registry
if: github.event_name == 'push' if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: docker/build-push-action@v1 uses: docker/build-push-action@v1
with: with:
repository: simplelogin/app-ci repository: simplelogin/app-ci
@ -51,7 +50,7 @@ jobs:
tag_with_ref: true tag_with_ref: true
- name: Send Telegram message - name: Send Telegram message
if: github.event_name == 'push' if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: appleboy/telegram-action@master uses: appleboy/telegram-action@master
with: with:
to: ${{ secrets.TELEGRAM_TO }} to: ${{ secrets.TELEGRAM_TO }}