From 4e91b94a017aed09daa72a250c09a02d20bfa2b6 Mon Sep 17 00:00:00 2001 From: "K.B.Dharun Krishna" Date: Thu, 7 Dec 2023 19:50:53 +0530 Subject: [PATCH] fix/ci: update workflow --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 175aa61..028b56d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,9 +2,8 @@ name: Docker Image CI on: push: - branches: [ "main", "dev" ] + branches: [ "main" ] pull_request: - branches: [ "dev" ] env: REGISTRY_USER: ${{ github.actor }} @@ -26,6 +25,7 @@ jobs: # Push the image to GHCR (Image Registry) - name: Push To GHCR + if: github.repository == 'Vanilla-OS/Chronos' && github.ref == 'refs/heads/main' run: | docker tag vanilla-os/chronos:${{ github.ref_name }} ghcr.io/vanilla-os/chronos:${{ github.ref_name }} docker login ghcr.io -u ${{ env.REGISTRY_USER }} -p ${{ env.REGISTRY_PASSWORD }}