Skip to content

Commit

Permalink
[UXE-5949] chore: update Azion CLI version and adjust deployment comm…
Browse files Browse the repository at this point in the history
…ands for workflows (#2173)

* chore: update Azion CLI version and adjust deployment commands for production and staging workflows

* chore: update Azion configuration by adding new dependency and removing obsolete config file

* chore: update Azion CLI version to 2.5.3 in production deployment workflow
  • Loading branch information
HerbertJulio authored Feb 18, 2025
1 parent fd14499 commit 851d444
Show file tree
Hide file tree
Showing 6 changed files with 773 additions and 410 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ jobs:

- name: Download Azion CLI
run: |
wget https://github.com/aziontech/azion/releases/download/1.36.1/azion_1.36.1_linux_amd64.apk
apk add --allow-untrusted azion_1.36.1_linux_amd64.apk
wget https://github.com/aziontech/azion/releases/download/2.5.3/azion_2.5.3_linux_amd64.apk
apk add --allow-untrusted azion_2.5.3_linux_amd64.apk
- name: Configure Azion CLI
run: azion -t ${{ secrets.PLATFORM_KIT_TOKEN }}

- name: Build & Deploy
run: azion deploy --auto --config-dir azion/production
run: azion deploy --auto --local --config-dir azion/production
env:
VITE_STRIPE_TOKEN_PROD: ${{ secrets.PROD_STRIPE_TOKEN }}
VITE_RECAPTCHA_SITE_KEY: ${{ secrets.PROD_RECAPTCHA_SITE_KEY }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:

- name: Download Azion CLI
run: |
wget https://github.com/aziontech/azion/releases/download/1.36.1/azion_1.36.1_linux_amd64.apk
apk add --allow-untrusted azion_1.36.1_linux_amd64.apk
wget https://github.com/aziontech/azion/releases/download/2.5.3/azion_2.5.3_linux_amd64.apk
apk add --allow-untrusted azion_2.5.3_linux_amd64.apk
- name: Configure Azion CLI
run: azion -t ${{ secrets.PLATFORM_KIT_TOKEN }}

- name: Build & Deploy
run: azion deploy --auto --debug --config-dir azion/stage
run: azion deploy --auto --local --debug --config-dir azion/stage
env:
VITE_STRIPE_TOKEN_STAGE: ${{ secrets.STAGE_STRIPE_TOKEN }}
VITE_RECAPTCHA_SITE_KEY: ${{ secrets.STAGE_RECAPTCHA_SITE_KEY }}
Expand Down
Loading

0 comments on commit 851d444

Please sign in to comment.