From e2510e2a621b7406de1d343fcb3efeb4ed48e579 Mon Sep 17 00:00:00 2001 From: Usha N Date: Tue, 3 Nov 2020 18:21:34 +0530 Subject: [PATCH 1/3] Updating the pre-req configuration steps For Linux Apps, Developers need to set a new app setting called WEBSITE_WEBDEPLOY_USE_SCM and set to `true` before downloading the publish profile. --- ci/azure.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ci/azure.yml b/ci/azure.yml index a638c4c..2678376 100644 --- a/ci/azure.yml +++ b/ci/azure.yml @@ -5,10 +5,13 @@ # # To configure this workflow: # -# 1. Set up a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE with the value of your Azure publish profile. +# 1. For Linux apps, add an app setting called WEBSITE_WEBDEPLOY_USE_SCM and set it to true in your app. +# For more instructions see: +# +# 2. Set up a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE with the value of your Azure publish profile. # For instructions on obtaining the publish profile see: https://docs.microsoft.com/azure/app-service/deploy-github-actions#configure-the-github-secret # -# 2. Change the values for the AZURE_WEBAPP_NAME, AZURE_WEBAPP_PACKAGE_PATH and NODE_VERSION environment variables (below). +# 3. Change the values for the AZURE_WEBAPP_NAME, AZURE_WEBAPP_PACKAGE_PATH and NODE_VERSION environment variables (below). # # For more information on GitHub Actions for Azure, refer to https://github.com/Azure/Actions # For more samples to get started with GitHub Action workflows to deploy to Azure, refer to https://github.com/Azure/actions-workflow-samples From f75012de65c4d2e22b548521929b053e5c929737 Mon Sep 17 00:00:00 2001 From: Kayla Ngan Date: Wed, 4 Nov 2020 16:32:58 -0500 Subject: [PATCH 2/3] Revert "Update Publish Docker template to publish to GitHub Container Registry" --- ci/docker-publish.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index fc5439b..76756db 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -50,13 +50,12 @@ jobs: - name: Build image run: docker build . --file Dockerfile --tag $IMAGE_NAME - - name: Log into GitHub Container Registry - # TODO: Create a PAT with `read:packages` and `write:packages` scopes and save it as an Actions secret `CR_PAT` - run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin + - name: Log into registry + run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin - - name: Push image to GitHub Container Registry + - name: Push image run: | - IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME + IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME # Change all uppercase to lowercase IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') From 5aeeb19100f15129efbaa9025bcffcbd1a674e71 Mon Sep 17 00:00:00 2001 From: Usha N Date: Thu, 5 Nov 2020 22:32:30 +0530 Subject: [PATCH 3/3] Update azure.yml --- ci/azure.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/azure.yml b/ci/azure.yml index 2678376..5842381 100644 --- a/ci/azure.yml +++ b/ci/azure.yml @@ -5,8 +5,8 @@ # # To configure this workflow: # -# 1. For Linux apps, add an app setting called WEBSITE_WEBDEPLOY_USE_SCM and set it to true in your app. -# For more instructions see: +# 1. For Linux apps, add an app setting called WEBSITE_WEBDEPLOY_USE_SCM and set it to true in your app **before downloading the file**. +# For more instructions see: https://docs.microsoft.com/azure/app-service/configure-common#configure-app-settings # # 2. Set up a secret in your repository named AZURE_WEBAPP_PUBLISH_PROFILE with the value of your Azure publish profile. # For instructions on obtaining the publish profile see: https://docs.microsoft.com/azure/app-service/deploy-github-actions#configure-the-github-secret