Skip to content

Commit

Permalink
ci(deploy): use APP_ALIAS everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
Falinor committed May 30, 2024
1 parent 99ef1a0 commit d4bec35
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/review-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ 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
uses: actions/github-script@v7
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,
Expand Down Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit d4bec35

Please sign in to comment.