mirror of
https://github.com/dotnetcore/AgileConfig.git
synced 2026-10-18 21:21:12 +08:00
60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
name: arm32 ci workflow
|
|
|
|
on:
|
|
push:
|
|
branches: [ arm32 ]
|
|
paths-ignore:
|
|
- '**/*.md'
|
|
- '**/*.yml'
|
|
pull_request:
|
|
branches: [ arm32 ]
|
|
|
|
jobs:
|
|
build-reactapp:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: AgileConfig.Server.UI/react-ui-antd
|
|
strategy:
|
|
matrix:
|
|
node-version: [16.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- run: npm install
|
|
- run: npm run build
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: agileconfig-ui
|
|
path: AgileConfig.Server.UI/react-ui-antd/dist/
|
|
build-dotnet:
|
|
needs: build-reactapp
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup .NET Core
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 8.0.*
|
|
- name: Install dependencies
|
|
run: dotnet restore
|
|
- name: Build
|
|
run: dotnet build --configuration Release --no-restore
|
|
- uses: actions/download-artifact@v4
|
|
with:
|
|
name: agileconfig-ui
|
|
path: AgileConfig.Server.Apisite/wwwroot/ui
|
|
- name: Push to Docker Hub
|
|
uses: docker/build-push-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKER_HUB_NAME }}
|
|
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
|
repository: kklldog/agile_config
|
|
tags: arm32
|