Compare commits

...

6 Commits

2 changed files with 6 additions and 2 deletions
Vendored
+2 -1
View File
@@ -36,6 +36,7 @@ pipeline {
stage('Publish') {
steps {
bat 'dotnet publish src\\PowderCoating.Web\\PowderCoating.Web.csproj -c Release -r linux-x64 --self-contained false -o publish'
bat 'xcopy /E /Y /I src\\PowderCoating.Web\\wwwroot publish\\wwwroot\\'
}
}
@@ -51,7 +52,7 @@ pipeline {
)]) {
bat 'az login --service-principal -u "%AZ_CLIENT_ID%" -p "%AZ_CLIENT_SECRET%" --tenant "%AZ_TENANT_ID%" --output none'
bat 'az account set --subscription "%AZ_SUB_ID%"'
bat 'az webapp deploy --resource-group rg-powdercoatinglogix-prod --name linuxpcl --src-path deploy.zip --type zip'
bat 'az webapp deploy --resource-group rg-powdercoatinglogix-prod --name linuxpcl --src-path deploy.zip --type zip --async true'
bat 'az logout'
}
}
+4 -1
View File
@@ -5,4 +5,7 @@
self.addEventListener('install', () => self.skipWaiting());
self.addEventListener('activate', e => e.waitUntil(self.clients.claim()));
self.addEventListener('fetch', e => e.respondWith(fetch(e.request)));
self.addEventListener('fetch', e => {
if (new URL(e.request.url).origin !== self.location.origin) return;
e.respondWith(fetch(e.request));
});