From e630f5648b63337fd00058d649bff1fce27462c3 Mon Sep 17 00:00:00 2001 From: Mathieu Charron Date: Wed, 6 Mar 2024 12:01:37 -0500 Subject: [PATCH] Update drupal10_ces-drupal.yml Removed the need for artifact for this. It should eliminate the storage usage requirement. --- .github/workflows/drupal10_ces-drupal.yml | 50 +++++++---------------- 1 file changed, 14 insertions(+), 36 deletions(-) diff --git a/.github/workflows/drupal10_ces-drupal.yml b/.github/workflows/drupal10_ces-drupal.yml index 24a06c6..85bbd18 100644 --- a/.github/workflows/drupal10_ces-drupal.yml +++ b/.github/workflows/drupal10_ces-drupal.yml @@ -10,9 +10,14 @@ on: workflow_dispatch: jobs: - build: + deploy: runs-on: ubuntu-latest - + environment: + name: 'Production' + url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + permissions: + id-token: write #This is required for requesting the JWT + steps: - uses: actions/checkout@v4 @@ -30,40 +35,13 @@ jobs: - name: Run composer install if composer.json exists if: steps.check_files.outputs.files_exists == 'true' run: composer validate --no-check-publish && composer install --prefer-dist --no-progress - - - name: Zip artifact for deployment - run: zip release.zip ./* -r - - - name: Upload artifact for deployment job - uses: actions/upload-artifact@v3 + + - name: Login to Azure + uses: azure/login@v1 with: - name: php-app - path: release.zip - - deploy: - runs-on: ubuntu-latest - needs: build - environment: - name: 'Production' - url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} - permissions: - id-token: write #This is required for requesting the JWT - - steps: - - name: Download artifact from build job - uses: actions/download-artifact@v3 - with: - name: php-app - - - name: Unzip artifact for deployment - run: unzip release.zip - - - name: Login to Azure - uses: azure/login@v1 - with: - client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_E9877C94768C47CCB742173B1104ABD1 }} - tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_1E5FB74BCF914AADABEBD97712D3ABD6 }} - subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_8DFEB8FE1BA9418CAAEBD4AB75F02A6F }} + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_E9877C94768C47CCB742173B1104ABD1 }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_1E5FB74BCF914AADABEBD97712D3ABD6 }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_8DFEB8FE1BA9418CAAEBD4AB75F02A6F }} - name: 'Deploy to Azure Web App' uses: azure/webapps-deploy@v2 @@ -72,4 +50,4 @@ jobs: app-name: 'ces-drupal' slot-name: 'Production' package: . - \ No newline at end of file +