chore(deps): bump the npm_and_yarn group across 4 directories with 25 updates #177
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and push dashboard image | |
| on: | |
| push: | |
| paths: | |
| - dashboard/** | |
| - ./.github/workflows/dashboard.yaml | |
| branches: | |
| - "main" | |
| pull_request: | |
| paths: | |
| - dashboard/** | |
| - ./.github/workflows/dashboard.yaml | |
| merge_group: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: "🚀 Building" | |
| run: | | |
| docker build -t ghcr.io/dfinity/dre/ic-management-frontend:$GITHUB_SHA -f dashboard/Dockerfile dashboard | |
| - name: "🔧 Login to GitHub Container Registry" | |
| uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: "📦 Push images to GitHub Container Registry" | |
| if: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' }} | |
| run: | | |
| docker push ghcr.io/dfinity/dre/ic-management-frontend:$GITHUB_SHA | |
| ######################################## | |
| # Update k8s deployments | |
| ######################################## | |
| - name: "🤖 Update k8s deployments" | |
| if: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' }} | |
| uses: ./.github/workflows/update-k8s-deployments | |
| with: | |
| files-to-update: bases/apps/mainnet-dashboard/frontend/deployment.yaml | |
| push-token: ${{ secrets.K8S_API_TOKEN }} | |
| component: dashboard frontend |