Skip to content

Commit

Permalink
fix docker push
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Mar 13, 2024
1 parent 38859d5 commit 12830f7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,11 @@ jobs:
- name: "Determine if docker images shall be published"
run: |
# ACT -> https://nektosact.com/usage/index.html#skipping-steps
if [[ $GITHUB_REF_NAME == 'main' && $GITHUB_EVENT_NAME != 'pull_request' && -n $ACT ]]; then
echo "DOCKER_PUSH_GHCR=true" > "$GITHUB_ENV"
set -x
if [[ $GITHUB_REF_NAME == 'main' && $GITHUB_EVENT_NAME != 'pull_request' && -z "$ACT" ]]; then
echo "DOCKER_PUSH_GHCR=true" >> "$GITHUB_ENV"
if [[ -n "${{ secrets.DOCKER_HUB_USERNAME }}" ]]; then
echo "DOCKER_PUSH=true" > "$GITHUB_ENV"
echo "DOCKER_PUSH=true" >> "$GITHUB_ENV"
fi
fi
Expand Down

0 comments on commit 12830f7

Please sign in to comment.