Skip to content

Commit

Permalink
CI: Fix hopeless-docker prevention
Browse files Browse the repository at this point in the history
[why]
I am sure I tested it and it worked. Well, it does not, it throws an
error message
  Unrecognized named-value: 'secrets'

[how]
Secrets can not be used in the `if`, see
actions/runner#520

But they can be used in `env`, ... so do it there.

Signed-off-by: Fini Jastrow <[email protected]>
  • Loading branch information
Finii committed Aug 26, 2022
1 parent 3166e0b commit e372793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
publish-image:
name: Publish image
runs-on: ubuntu-latest
if: ${{ secrets.DOCKER_USER }}
if: ${{ github.repository_owner == 'ryanoasis' }}
steps:
- uses: actions/checkout@v3
- name: Build image
Expand Down

0 comments on commit e372793

Please sign in to comment.