From d2e1721a365919fb9411cff50ed2dc5fa69e6198 Mon Sep 17 00:00:00 2001 From: Hugo Herter Date: Thu, 29 Aug 2024 15:30:14 +0200 Subject: [PATCH] Fix: Docker image was not built for `main` branch --- .github/workflows/pyaleph-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pyaleph-ci.yml b/.github/workflows/pyaleph-ci.yml index e6d5f4ea1..ed084a5b6 100644 --- a/.github/workflows/pyaleph-ci.yml +++ b/.github/workflows/pyaleph-ci.yml @@ -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