Users/rido/deploy test artifacts #9
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: cd-samples | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js 22 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install Node dependencies | |
run: npm install | |
working-directory: ./samples | |
- name: Run lint | |
run: npm run lint | |
working-directory: ./samples | |
- name: Build Node Copilot Studio client sample | |
working-directory: ./samples/basic/copilotstudio-client/nodejs/ | |
run: | | |
npm install | |
npm run build | |
- name: Build docker iamge dotnet Echo bot | |
working-directory: ./samples/basic/echo-bot/dotnet/ | |
run: | | |
dotnet publish /t:PublishContainer /p:ContainerRepository=dotnet-echo-bot --os linux --arch x64 | |
docker tag dotnet-echo-bot:latest ghcr.io/rido-min/dotnet-echo-bot:latest | |
docker push ghcr.io/rido-min/dotnet-echo-bot:latest | |
- name: Build docker image Node Echo bot | |
working-directory: ./samples/basic/echo-bot/nodejs/ | |
run: | | |
npm install | |
npm run docker | |
docker tag node-echo-bot:1.0.0 ghcr.io/rido-min/node-echo-bot:latest | |
docker push ghcr.io/rido-min/node-echo-bot:latest | |
- name: Build docker image Node Cards bot | |
working-directory: ./samples/basic/cards/nodejs/ | |
run: | | |
npm install | |
npm run docker | |
docker tag node-cards-bot:1.0.0 ghcr.io/rido-min/node-cards-bot:latest | |
docker push ghcr.io/rido-min/node-cards-bot:latest | |
- name: Build docker iamge Node Skill bot | |
working-directory: ./samples/complex/copilotstudio-skill/nodejs/ | |
run: | | |
npm install | |
npm run docker | |