microsoft/TypeAgent

Public

mirrored from https://github.com/microsoft/TypeAgentAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
330c3a3f060312a02623c5632e04ea63fb4190a3

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/build-docker-container.yml

65lines · modecode

1# Copyright (c) Microsoft Corporation.
2# Licensed under the MIT License.
3
4# This workflow builds a Docker container and deploys it to the TypeAgent container repository
5
6name: Build and deploy Node.js app to Azure Web App - typeagent
7
8on:
9 push:
10 branches:
11 - main
12 workflow_dispatch:
13
14permissions:
15 id-token: write
16 contents: read
17
18jobs:
19
20 deploy:
21 runs-on: ubuntu-latest # pnpm deploy does not work currently on Windows. Fails with EPERM.
22 steps:
23 - name: Setup Git LF
24 run: |
25 git config --global core.autocrlf false
26
27 - uses: actions/checkout@v4
28 with:
29 ref: main
30
31 - uses: dorny/paths-filter@v3
32 id: filter
33 with:
34 filters: |
35 ts:
36 - "ts/**"
37 - ".github/workflows/build-ts.yml"
38
39 - uses: pnpm/action-setup@v4
40 if: ${{ github.event_name != 'pull_request' || steps.filter.outputs.ts == 'true' }}
41 name: Install pnpm
42 with:
43 version: 9
44 run_install: false
45
46 - uses: actions/setup-node@v4
47 if: ${{ github.event_name != 'pull_request' || steps.filter.outputs.ts == 'true' }}
48 with:
49 node-version: ${{ matrix.version }}
50 #cache: "pnpm"
51 #cache-dependency-path: ts/pnpm-lock.yaml
52
53 - name: Login to Azure
54 uses: azure/login@v2.2.0
55 with:
56 client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_5B0D2D6BA40F4710B45721D2112356DD }}
57 tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_39BB903136F14B6EAD8F53A8AB78E3AA }}
58 subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_F36C1F2C4B2C49CA8DD5C52FAB98FA30 }}
59
60 - name: Set up Docker Buildx
61 uses: docker/setup-buildx-action@v3
62
63 - run: az acr build -t typeagent:latest -r typeagentContainerRegistry --file ${{ github.workspace }}/ts/Dockerfile --subscription b64471de-f2ac-4075-a3cb-7656bca768d0 ${{ github.workspace }}/ts
64
65
66