Skip to content

Commit

Permalink
fix/ci: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kbdharun authored Dec 7, 2023
1 parent f7fd5c6 commit 4e91b94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: Docker Image CI

on:
push:
branches: [ "main", "dev" ]
branches: [ "main" ]
pull_request:
branches: [ "dev" ]

env:
REGISTRY_USER: ${{ github.actor }}
Expand All @@ -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 }}
Expand Down

0 comments on commit 4e91b94

Please sign in to comment.