Build aks-desktop (Linux) #38
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 aks-desktop (Linux) | |
| on: | |
| schedule: | |
| # Runs every day at 1:00 AM UTC | |
| - cron: '0 1 * * *' | |
| workflow_dispatch: | |
| inputs: | |
| aks_plugin_branch: | |
| description: 'Branch to build aks-plugin' | |
| required: true | |
| default: 'main' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install golang | |
| uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 | |
| with: | |
| go-version: '1.24.*' | |
| - name: Setup nodejs | |
| uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 | |
| with: | |
| node-version: 20.x | |
| - name: Checkout this repository with submodules | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| with: | |
| ref: ${{ github.event.inputs.aks_plugin_branch }} | |
| submodules: recursive | |
| - name: Setup AKS desktop and Build Headlamp (Linux) | |
| run: npm run build:linux | |
| - name: Upload Linux build artifact | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| with: | |
| name: aks-desktop-linux | |
| path: headlamp/app/dist/aks-desktop*.deb |