Skip to content

Commit

Permalink
Merge branch 'main' into feat/CHK-2749--mui-upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
infantesimone authored Jun 12, 2024
2 parents f00b41c + 8576cd4 commit 6fe878e
Show file tree
Hide file tree
Showing 10 changed files with 415 additions and 103 deletions.
154 changes: 77 additions & 77 deletions .devops/pagopa-deploy-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ stages:
azureSubscription: 'DEV-PAGOPA-SERVICE-CONN'
scriptLocation: inlineScript
inlineScript: |
az storage blob sync --container '$web' --account-name pagopadcheckoutsa -s '$(Pipeline.Workspace)/Bundle_DEV' -d 'ecommerce-fe'
az storage blob sync --container '$web' --account-name pagopadcheckoutsa -s '$(Pipeline.Workspace)/Bundle_DEV' -d 'ecommerce-fe/'
- task: AzureCLI@1
displayName: 'Purge CDN endpoint on DEV'
Expand Down Expand Up @@ -241,7 +241,7 @@ stages:
azureSubscription: 'UAT-PAGOPA-SERVICE-CONN'
scriptLocation: inlineScript
inlineScript: |
az storage blob sync --container '$web' --account-name pagopaucheckoutsa -s '$(Pipeline.Workspace)/Bundle_UAT' -d 'ecommerce-fe'
az storage blob sync --container '$web' --account-name pagopaucheckoutsa -s '$(Pipeline.Workspace)/Bundle_UAT' -d 'ecommerce-fe/'
- task: AzureCLI@1
displayName: 'Purge CDN endpoint on UAT'
Expand All @@ -266,79 +266,79 @@ stages:
# CHECKOUT_RESOURCE_REPO_NAME: checkoutTests

# Prepare Artifact
# - stage: Prepare_artifact_prod
# dependsOn:
# - Deploy_UAT_pagoPA
# jobs:
# - job: make_build
# pool:
# vmImage: 'ubuntu-latest'
# steps:
# - template: templates/node-job-setup/template.yaml@pagopaCommons
# parameters:
# # On the assumption that this stage is executed only when Relase stage is,
# # with this parameter we set the reference the deploy script must pull changes from.
# # The branch/tag name is calculated from the source branch
# # ex: Build.SourceBranch=refs/heads/main --> main
# # ex: Build.SourceBranch=refs/tags/v1.2.3-RELEASE --> v1.2.3-RELEASE
# gitReference: ${{ replace(replace(variables['Build.SourceBranch'], 'refs/tags/', ''), 'refs/heads/', '') }}

# - template: azure-templates/setup-env.yml
# parameters:
# env: 'PROD'
# api_timeout: 10000
# api_host: 'https://api.platform.pagopa.it'
# checkout_api_path: '/ecommerce/checkout/v1'
# io_api_path: '/ecommerce/webview/v1'
# npg_sdk_url: 'https://xpay.nexigroup.com/monetaweb/resources/hfsdk.js'
# gdi_check_timeout: 12000
# io_client_redirect_outcome_path: 'https://api.platform.pagopa.it/ecommerce/io/v1/transactions'
# checkout_client_redirect_outcome_path: 'https://checkout.pagopa.it/v2/esito'

# - script: |
# yarn build
# displayName: 'Build'

# - publish: $(System.DefaultWorkingDirectory)/dist
# artifact: Bundle

# - stage: UAT_to_PROD_promotion
# dependsOn:
# - Prepare_artifact_prod
# jobs:
# - job: Deploy_Prod_WaitForApproval
# displayName: Wait for PROD approval
# pool: server
# timeoutInMinutes: 4320 # 3 days
# steps:
# - task: ManualValidation@0
# timeoutInMinutes: 4320 # 3 days
# inputs:
# onTimeout: 'skip'
- stage: Prepare_artifact_prod
dependsOn:
- Deploy_UAT_pagoPA
jobs:
- job: make_build
pool:
vmImage: 'ubuntu-latest'
steps:
- template: templates/node-job-setup/template.yaml@pagopaCommons
parameters:
# On the assumption that this stage is executed only when Relase stage is,
# with this parameter we set the reference the deploy script must pull changes from.
# The branch/tag name is calculated from the source branch
# ex: Build.SourceBranch=refs/heads/main --> main
# ex: Build.SourceBranch=refs/tags/v1.2.3-RELEASE --> v1.2.3-RELEASE
gitReference: ${{ replace(replace(variables['Build.SourceBranch'], 'refs/tags/', ''), 'refs/heads/', '') }}

# - stage: Deploy_PROD_pagoPA
# dependsOn:
# - UAT_to_PROD_promotion
# jobs:
# - job: 'deploy'
# steps:
# - checkout: none

# - download: current
# artifact: Bundle

# - task: AzureCLI@1
# displayName: 'Sync checkout storage on PROD'
# inputs:
# azureSubscription: 'PROD-PAGOPA-SERVICE-CONN'
# scriptLocation: inlineScript
# inlineScript: |
# call az storage blob sync --container $web --account-name pagopapcheckoutsa -s "$(Pipeline.Workspace)\Bundle" --exclude-path payment-transactions-gateway

# - task: AzureCLI@1
# displayName: 'Purge CDN endpoint on PROD'
# inputs:
# azureSubscription: 'PROD-PAGOPA-SERVICE-CONN'
# scriptLocation: inlineScript
# inlineScript: |
# call az cdn endpoint purge -g pagopa-p-checkout-fe-rg -n pagopa-p-checkout-cdn-endpoint --profile-name pagopa-p-checkout-cdn-profile --content-paths "/*"
- template: azure-templates/setup-env.yml
parameters:
env: 'PROD'
api_timeout: 10000
api_host: 'https://api.platform.pagopa.it'
checkout_api_path: '/ecommerce/checkout/v1'
io_api_path: '/ecommerce/webview/v1'
npg_sdk_url: 'https://xpay.nexigroup.com/monetaweb/resources/hfsdk.js'
gdi_check_timeout: 12000
io_client_redirect_outcome_path: 'https://api.platform.pagopa.it/ecommerce/io-outcomes/v1/transactions'
checkout_client_redirect_outcome_path: 'https://checkout.pagopa.it/v2/esito'

- script: |
yarn build
displayName: 'Build_PROD'
- publish: $(System.DefaultWorkingDirectory)/dist
artifact: Bundle_PROD

- stage: UAT_to_PROD_promotion
dependsOn:
- Prepare_artifact_prod
jobs:
- job: Deploy_Prod_WaitForApproval
displayName: Wait for PROD approval
pool: server
timeoutInMinutes: 4320 # 3 days
steps:
- task: ManualValidation@0
timeoutInMinutes: 4320 # 3 days
inputs:
onTimeout: 'skip'

- stage: Deploy_PROD_pagoPA
dependsOn:
- UAT_to_PROD_promotion
jobs:
- job: 'deploy'
steps:
- checkout: none

- download: current
artifact: Bundle_PROD

- task: AzureCLI@1
displayName: 'Sync checkout storage on PROD'
inputs:
azureSubscription: 'PROD-PAGOPA-SERVICE-CONN'
scriptLocation: inlineScript
inlineScript: |
az storage blob sync --container '$web' --account-name pagopapcheckoutsa -s '$(Pipeline.Workspace)/Bundle_PROD' -d 'ecommerce-fe/'
- task: AzureCLI@1
displayName: 'Purge CDN endpoint on PROD'
inputs:
azureSubscription: 'PROD-PAGOPA-SERVICE-CONN'
scriptLocation: inlineScript
inlineScript: |
az cdn endpoint purge -g pagopa-p-checkout-fe-rg -n pagopa-p-checkout-cdn-endpoint --profile-name pagopa-p-checkout-cdn-profile --content-paths "/*"
2 changes: 2 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ ECOMMERCE_GDI_CHECK_TIMEOUT=12000
ECOMMERCE_NPG_SDK_URL=https://stg-ta.nexigroup.com/monetaweb/resources/hfsdk.js
ECOMMERCE_IO_CLIENT_REDIRECT_OUTCOME_PATH=test
ECOMMERCE_CHECKOUT_CLIENT_REDIRECT_OUTCOME_PATH=http://localhost:1234/v2/esito
ECOMMERCE_GET_TRANSACTION_POLLING_DELAY_MILLIS=100
ECOMMERCE_GET_TRANSACTION_POLLING_RETRIES=2
35 changes: 34 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,42 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [v0.0.4](https://github.com/pagopa/pagopa-ecommerce-fe/compare/v0.0.3...v0.0.4)
#### [v0.1.2](https://github.com/pagopa/pagopa-ecommerce-fe/compare/v0.1.1...v0.1.2)

- fix: add trailing slash to sync command path [`#35`](https://github.com/pagopa/pagopa-ecommerce-fe/pull/35)

#### [v0.1.1](https://github.com/pagopa/pagopa-ecommerce-fe/compare/v0.1.1-RELEASE...v0.1.1)

> 6 June 2024
#### [v0.1.1-RELEASE](https://github.com/pagopa/pagopa-ecommerce-fe/compare/v0.1.0...v0.1.1-RELEASE)

> 6 June 2024
- chore(deploy): enable prod deploy [`#34`](https://github.com/pagopa/pagopa-ecommerce-fe/pull/34)
- Bump version to 0.1.1 [skip ci] [`7e90d89`](https://github.com/pagopa/pagopa-ecommerce-fe/commit/7e90d898b471fba3e9cd73f58d44ee98f4640b8c)

#### [v0.1.0](https://github.com/pagopa/pagopa-ecommerce-fe/compare/v0.1.0-RELEASE...v0.1.0)

> 30 April 2024
#### [v0.1.0-RELEASE](https://github.com/pagopa/pagopa-ecommerce-fe/compare/v0.0.4...v0.1.0-RELEASE)

> 30 April 2024
- feat: map redirect outcome [`#32`](https://github.com/pagopa/pagopa-ecommerce-fe/pull/32)
- Bump version to 0.1.0 [skip ci] [`aff447d`](https://github.com/pagopa/pagopa-ecommerce-fe/commit/aff447d53f88d48d508e5fc7e84b9972fb40bb26)

#### [v0.0.4](https://github.com/pagopa/pagopa-ecommerce-fe/compare/v0.0.4-RELEASE...v0.0.4)

> 10 April 2024
#### [v0.0.4-RELEASE](https://github.com/pagopa/pagopa-ecommerce-fe/compare/v0.0.3...v0.0.4-RELEASE)

> 10 April 2024
- [CHK-2729] fix(outcome): set right basepath for io redirect outcome [`#30`](https://github.com/pagopa/pagopa-ecommerce-fe/pull/30)
- Bump version to 0.0.4 [skip ci] [`bba7530`](https://github.com/pagopa/pagopa-ecommerce-fe/commit/bba7530f065c489e5328124384be094442949a4a)
- fix basepath for io redirect outcome [`4ab5924`](https://github.com/pagopa/pagopa-ecommerce-fe/commit/4ab5924b015b7d8f979e34d46649df1efbf157ba)

#### [v0.0.3](https://github.com/pagopa/pagopa-ecommerce-fe/compare/v0.0.3-RELEASE...v0.0.3)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pagopa-ecommerce-fe",
"version": "0.0.4",
"version": "0.1.2",
"scripts": {
"type-check": "tsc",
"generate": "npm-run-all generate:*",
Expand Down
Loading

0 comments on commit 6fe878e

Please sign in to comment.