Skip to content

Commit

Permalink
Don't try to push image if you're not a member
Browse files Browse the repository at this point in the history
Otherwise, all CI will fail, just like it's happening in [this run][1] from #30.

[1]: https://github.com/Tecnativa/docker-duplicity/runs/663169029?check_suite_focus=true
  • Loading branch information
Jairo Llopis committed May 13, 2020
1 parent f7332a3 commit 2c5d0c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
with:
add_git_labels: true
password: ${{ secrets.GITHUB_TOKEN }}
push: ${{ github.event.pull_request.author_association == 'MEMBER' }}
registry: docker.pkg.github.com
repository: tecnativa/docker-duplicity/testing-pr-${{ github.event.number }}
username: ${{ github.actor }}
Expand All @@ -50,6 +51,7 @@ jobs:
with:
add_git_labels: true
password: ${{ secrets.GITHUB_TOKEN }}
push: ${{ github.event.pull_request.author_association == 'MEMBER' }}
registry: docker.pkg.github.com
repository: tecnativa/docker-duplicity/testing-pr-${{ github.event.number }}
username: ${{ github.actor }}
Expand All @@ -63,6 +65,7 @@ jobs:
with:
add_git_labels: true
password: ${{ secrets.GITHUB_TOKEN }}
push: ${{ github.event.pull_request.author_association == 'MEMBER' }}
registry: docker.pkg.github.com
repository: tecnativa/docker-duplicity/testing-pr-${{ github.event.number }}
username: ${{ github.actor }}
Expand All @@ -76,6 +79,7 @@ jobs:
with:
add_git_labels: true
password: ${{ secrets.GITHUB_TOKEN }}
push: ${{ github.event.pull_request.author_association == 'MEMBER' }}
registry: docker.pkg.github.com
repository: tecnativa/docker-duplicity/testing-pr-${{ github.event.number }}
username: ${{ github.actor }}
Expand All @@ -89,6 +93,7 @@ jobs:
with:
add_git_labels: true
password: ${{ secrets.GITHUB_TOKEN }}
push: ${{ github.event.pull_request.author_association == 'MEMBER' }}
registry: docker.pkg.github.com
repository: tecnativa/docker-duplicity/testing-pr-${{ github.event.number }}
username: ${{ github.actor }}
Expand Down

0 comments on commit 2c5d0c4

Please sign in to comment.