mirror of
https://github.com/simple-login/app.git
synced 2025-10-05 12:58:55 +08:00
only push docker image on master
This commit is contained in:
parent
e2f0a72ab7
commit
4c1bf68d86
1 changed files with 2 additions and 3 deletions
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
|
@ -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 }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue