Skip to content

Commit

Permalink
fix(ci): fixing condition for pushing of dashboard image (#296)
Browse files Browse the repository at this point in the history
* testing push of image

* fixing path filter

* adding correct name
  • Loading branch information
NikolaMilosa committed Apr 5, 2024
1 parent 4f712bd commit 283e346
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Build and push dashboard image
on:
push:
paths:
- dashboard
- dashboard/**
- ./.github/workflows/dashboard.yaml
branches:
- "main"
pull_request:
Expand All @@ -29,6 +30,6 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: "📦 Push images to GitHub Container Registry"
if: ${{ startsWith(github.head_ref, 'container') || startsWith(github.ref, 'refs/heads/container') || (github.ref == 'refs/heads/main') }}
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.head_ref, 'container') || startsWith(github.ref, 'refs/heads/container') || (github.ref == 'refs/heads/main') }}
run: |
docker push ghcr.io/dfinity/dre/ic-management-frontend:$GITHUB_SHA
2 changes: 1 addition & 1 deletion dashboard/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ packages/*/dist
packages/*/node_modules
plugins/*/dist
plugins/*/node_modules
docker-compose*.yml
docker-compose*.yml

0 comments on commit 283e346

Please sign in to comment.