From d4bec3546f9a11b7f74620f273f7c3673f1f6393 Mon Sep 17 00:00:00 2001 From: Andrea Gueugnaut Date: Thu, 30 May 2024 12:06:44 +0200 Subject: [PATCH] ci(deploy): use APP_ALIAS everywhere --- .github/workflows/review-app.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/review-app.yml b/.github/workflows/review-app.yml index 82e8d430b7..f612a2a434 100644 --- a/.github/workflows/review-app.yml +++ b/.github/workflows/review-app.yml @@ -70,7 +70,7 @@ jobs: clever env set S3_SECRET_ACCESS_KEY $CELLAR_ADDON_KEY_SECRET -a $APP_ALIAS clever env set WORKSPACE "@zerologementvacant/queue" -a $APP_ALIAS - clever domain add $PR_NAME-queue.cleverapps.io -a $APP_ALIAS + clever domain add $APP_ALIAS.cleverapps.io -a $APP_ALIAS clever deploy -a $APP_ALIAS - name: Comment PR @@ -78,7 +78,7 @@ jobs: with: script: | const issue_number = context.payload.pull_request.number; - const message = `Deployment has finished 👁️👄👁️ Your app is available [here](https://pr${{ github.event.number }}.cleverapps.io)`; + const message = `Deployment has finished 👁️👄👁️ Your app is available [here](https://$APP_ALIAS.cleverapps.io)`; github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo, @@ -113,6 +113,7 @@ jobs: CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }} ORGA_ID: ${{ secrets.CLEVER_ORG }} PR_NAME: pr${{ github.event.number }} + APP_ALIAS: pr${{ github.event.number }}-queue run: | clever link -o $ORGA_ID $PR_NAME clever deploy --force @@ -122,7 +123,7 @@ jobs: with: script: | const issue_number = context.payload.pull_request.number; - const message = `🚀 Your app has been updated and is available [here](https://doc-review-PR-${{ github.event.number }}.cleverapps.io)`; + const message = `🚀 Your app has been updated and is available [here](https://$APP_ALIAS.cleverapps.io)`; github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo,