mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
deploy job only runs if relevant branches
This commit is contained in:
parent
9af9d14fe6
commit
08513cc78a
1 changed files with 1 additions and 2 deletions
|
|
@ -107,7 +107,7 @@ jobs:
|
|||
name: Deploy Docker Image
|
||||
needs: test
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.repository == 'evennia/evennia' }}
|
||||
if: ${{ github.repository == 'evennia/evennia' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop') }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
|
@ -118,7 +118,6 @@ jobs:
|
|||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to DockerHub
|
||||
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' }}
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue