From 618c3d0ba36e6bdd05d1ac0dd7665296c073b919 Mon Sep 17 00:00:00 2001 From: Charles OuGuo Date: Thu, 13 Jun 2024 12:48:57 -0500 Subject: [PATCH] Only push on main --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0a01f89a..d51095fb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,7 +39,7 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Push to Docker Hub - # if: ${{ github.ref == 'refs/heads/main' }} + if: ${{ github.ref == 'refs/heads/main' }} run: | bazel --bazelrc=.github/workflows/ci.bazelrc --bazelrc=.bazelrc run //src/python/fitbit_challenges/api:dockerhub bazel --bazelrc=.github/workflows/ci.bazelrc --bazelrc=.bazelrc run //src/python/fitbit_challenges/api/migrations:dockerhub