Skip to content

Commit

Permalink
Fix: Docker image was not built for main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hoh authored Aug 29, 2024
1 parent b858351 commit d2e1721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pyaleph-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
- name: Push the image to the cache
# It's not possible to push packages from fork PRs.
if: github.event.pull_request.head.repo.full_name == github.repository
if: github.ref == 'refs/heads/main' || github.event.pull_request.head.repo.full_name == github.repository
run: |
docker tag pyaleph-node:${GITHUB_REF##*/} ghcr.io/$GITHUB_REPOSITORY/build-cache
docker push ghcr.io/$GITHUB_REPOSITORY/build-cache

0 comments on commit d2e1721

Please sign in to comment.