Skip to content

fix(dashboard): restrict activities API based on namespace access (#171) #5

fix(dashboard): restrict activities API based on namespace access (#171)

fix(dashboard): restrict activities API based on namespace access (#171) #5

name: Build & Publish dashboard-Angular Docker image
on:
push:
branches:
- main
- v*-branch
paths:
- components/centraldashboard-angular/**
- releasing/version/VERSION
env:
IMG: ghcr.io/kubeflow/dashboard/dashboard-angular
COMPONENT_PATH: components/centraldashboard-angular
jobs:
push_to_registry:
name: Build & Push image to GHCR
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: dorny/paths-filter@v3
id: filter
with:
base: ${{ github.ref }}
filters: |
version:
- 'releasing/version/VERSION'
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run CentralDashboard-Angular build/push
run: |
cd ${{ env.COMPONENT_PATH }}
make docker-build docker-push
- name: Run CentralDashboard-Angular build/push latest
if: github.ref == 'refs/heads/main'
run: |
export TAG=latest
cd ${{ env.COMPONENT_PATH }}
make docker-build docker-push
- name: Run CentralDashboard-Angular build/push on Version change
id: version
if: steps.filter.outputs.version == 'true'
run: |
export TAG=$(cat releasing/version/VERSION)
cd ${{ env.COMPONENT_PATH }}
make docker-build docker-push