DP-3020 - Lab 2 - Configure and Deploy CI/CD Pipelines - Issue
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 62/100
调研方向
从 LAB02 Step 3 及其 main.yml workflow 开始,将所指导的部署与 issue 中所示的已编辑 workflow 进行比较。针对 Azure SQL Database 项目运行该 workflow,并确认 DotNet 失败已消失,且构建会生成并部署 DACPAC。
由索引模型根据 Issue 内容生成。
描述
LAB02 (CSS): Configure and deploy CI/CD pipelines for Azure SQL Database projects
Task: Create a GitHub Actions workflow
Step. 3: Copy the code below on your main.yml file. The code includes the steps for building and deploying your database project.
User have reported running the deployment with the Main.yml file as instructed fails with a DotNet failure [P1]. I have confirmed this behavior and have been able to bypass the issue using the following edited code in the Main.yml file [P2]:
name: Build and Deploy SQL Database Project
on:
push:
branches:
- main
jobs:
build:
permissions:
contents: read
id-token: write
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
# Install MSBuild (required for .sqlproj)
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
# Install sqlpackage (Windows version)
- name: Install sqlpackage
run: |
dotnet tool install -g microsoft.sqlpackage
- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
# Build SQL Project using MSBuild
- name: Build SQL Project
run: |
msbuild .\MyDBProj\MyDBProj.sqlproj /p:Configuration=Release
# Publish DACPAC to Azure SQL
- name: Deploy DACPAC
run: |
sqlpackage /Action:Publish `
/SourceFile:".\MyDBProj\bin\Release\MyDBProj.dacpac" `
/TargetConnectionString:"${{ secrets.AZURE_CONN_STRING }}" `
/p:DropObjectsNotInSource=true
[P1] - Deployment with the code as instructed
[P2] - Deployment with edited code above
- 主要语言
- 没有语言数据
- 星标
- 5
- 派生
- 13
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MicrosoftLearning/mslearn-sql-dev 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 84/100
-
难度 3/5 1-2 天 新手友好度 45/100
MicrosoftLearning/mslearn-sql-dev#25 · 3 条评论 ·
查看 MicrosoftLearning/mslearn-sql-dev 的全部 Issue
相似的 Issue
-
agent-ready documentation needs-triage
难度 1/5 1-3 小时 新手友好度 88/100
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 76/100
-
refactor
难度 2/5 1-3 小时 新手友好度 78/100
-
bug build
难度 1/5 1 小时以内 新手友好度 91/100
facebookincubator/velox#19194 ·