Skip to content

Commit

Permalink
not publishing docker images for users without access to the org's se…
Browse files Browse the repository at this point in the history
…crets
  • Loading branch information
gabrielmer committed Apr 12, 2024
1 parent 269139c commit 395536a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ jobs:
outputs:
image: ${{ steps.build.outputs.image }}
steps:
- name: Check secrets
id: secrets
run: |
if [[ -z "$QUAY_PASSWORD" || -z "$QUAY_USER" ]]; then
echo "User does not have access to secrets, skipping workflow"
exit 0
fi
env:
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
QUAY_USER: ${{ secrets.QUAY_USER }}

- name: Checkout code
uses: actions/checkout@v3

Expand Down

0 comments on commit 395536a

Please sign in to comment.