Skip to content

Commit

Permalink
scratch files for agent
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpfalz committed Oct 22, 2023
1 parent 6d916cb commit 5df170f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions etc/checkout-local.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
$devPath = "_Dev"
$repo = "azure-sql-mi-devops"

mkdir $devPath
cd ./$devPath
$pat = ""
git clone "https://$pat@github.com/ryanpfalz/$repo.git"
cd "$repo"
git checkout "dev"
ls .
16 changes: 16 additions & 0 deletions etc/runner-build-test.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
$repo = "azure-sql-mi-devops"
cd "C:\Users\selfhostedadmin\_Dev\$repo"

$SQL_PROJECT_NAME = "DemoSqlProj"
dotnet build "data/$($SQL_PROJECT_NAME)/$($SQL_PROJECT_NAME).sqlproj" --configuration Release

cd C:\Users\selfhostedadmin\_Dev
rm -r "C:\Users\selfhostedadmin\actions-runner\_work\$repo"

##

$serverName = ""
$databaseName = ""
$userName = ""
$pass = ""
sqlpackage /Action:Publish /SourceFile:"./$SQL_PROJECT_NAME.dacpac" /TargetConnectionString:"Server=tcp:$serverName.database.windows.net,1433;Initial Catalog=$databaseName;Persist Security Info=False;User ID=$userName;Password=$pass;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"

0 comments on commit 5df170f

Please sign in to comment.