-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dependabot/npm_and_yarn/minimist-and-mkdir…
…p-1.2.8
- Loading branch information
Showing
117 changed files
with
3,295 additions
and
220 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,15 +13,23 @@ env: | |
RESOURCE_GROUP: appserviceblogsite | ||
SLOT_NAME: pr-${{ github.event.number }} | ||
|
||
#OIDC | ||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
jobs: | ||
delete-slot: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Log into Azure CLI with service principal | ||
uses: azure/[email protected] | ||
#OIDC | ||
- name: Run Azure Login with OIDC | ||
uses: azure/login@v2 | ||
with: | ||
creds: ${{ secrets.ANTARES_BLOG_SITE_SP }} | ||
client-id: ${{ secrets.AZURE_CLIENT_ID }} | ||
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
|
||
- name: Delete slot on staging site | ||
run: | | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,10 @@ env: | |
RESOURCE_GROUP: appserviceblogsite | ||
SLOT_NAME: pr-${{ github.event.number }} | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -20,10 +24,10 @@ jobs: | |
- name: Check out repo | ||
uses: actions/checkout@v1 | ||
|
||
- name: Set up Ruby 2.6 | ||
- name: Set up Ruby 3.0 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '2.6' | ||
ruby-version: '3.0' | ||
bundler-cache: true | ||
|
||
- name: Install Ruby dependencies | ||
|
@@ -40,21 +44,33 @@ jobs: | |
run: cd _site && zip -r ../blog.zip . | ||
|
||
- name: Upload artifact for deployment job | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: jekyll-app | ||
path: blog.zip | ||
|
||
set-up-test-env: | ||
name: Create test env | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
steps: | ||
- name: Log into Azure CLI with service principal | ||
uses: azure/login@v1.1 | ||
- name: Run Azure Login with OIDC | ||
uses: azure/login@v2 | ||
with: | ||
creds: ${{ secrets.ANTARES_BLOG_SITE_SP }} | ||
client-id: ${{ secrets.AZURE_CLIENT_ID }} | ||
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
|
||
- name: Azure CLI script | ||
uses: azure/CLI@v2 | ||
with: | ||
azcliversion: latest | ||
inlineScript: | | ||
az account show | ||
- name: Create slot on staging site | ||
run: | | ||
az webapp deployment slot create \ | ||
|
@@ -67,25 +83,36 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: [build, set-up-test-env] | ||
environment: | ||
name: "PR #${{ github.event.number }}" | ||
name: "production" | ||
url: "${{ steps.deploy-to-webapp.outputs.webapp-url }}" | ||
permissions: | ||
id-token: write | ||
contents: read | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Log into Azure CLI with service principal | ||
uses: azure/[email protected] | ||
- name: Run Azure Login with OIDC | ||
uses: azure/login@v2 | ||
with: | ||
client-id: ${{ secrets.AZURE_CLIENT_ID }} | ||
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
|
||
- name: Azure CLI script | ||
uses: azure/CLI@v2 | ||
with: | ||
creds: ${{ secrets.ANTARES_BLOG_SITE_SP }} | ||
azcliversion: latest | ||
inlineScript: | | ||
az account show | ||
- name: Download artifact from build job | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: jekyll-app | ||
|
||
- name: Deploy to slot on staging site | ||
uses: azure/webapps-deploy@v1 | ||
with: | ||
uses: Azure/webapps-deploy@v3.0.0 | ||
with: | ||
app-name: ${{ env.WEBAPP_NAME }} | ||
slot-name: ${{ env.SLOT_NAME }} | ||
package: blog.zip | ||
|
This file contains 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
This file contains 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
This file contains 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
83 changes: 0 additions & 83 deletions
83
...-21-Announcing Application Insights Integration with App Service Diagnostics.md
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.