Skip to content

pagopa/pagopa-platform-cdn-assets

Repository files navigation

your-project-name

This repo template allows you to create a repo for your project pipelines

How to use this template

You need to create before in infra this resources:

  • vm agent
  • key vault

You need to add to the key vault at least this secrets:

  • azure-devops-github-ro-TOKEN
  • azure-devops-github-pr-TOKEN
  • azure-devops-github-EMAIL
  • azure-devops-github-USERNAME
  • TENANTID
  • DEV-SUBSCRIPTION-ID
  • UAT-SUBSCRIPTION-ID
  • PROD-SUBSCRIPTION-ID
  • le-private-key-json
  • le-regr-json

Github bot

Use your github bot to generate the token to interact with your repo.

And don't forgot to associate to your repo as ADMIN, without this is impossibile to use the pipelines

Change values in this files

Change the values in this files

azure-devops/.env/prod-backend.ini

Put the name of your production subscription

azure-devops/.env/terraform.tfvars

Change the project prefix and the names of your subscriptions

azure-devops/.env/(app | iac)_state.tfvars

Change the information about the state, changed the prefix with the prefix of your project used into the infra project. (e.g. selc or dvopla)

terraform.sh

To be able to launch terraform scripts you can use the script called terraform.sh

To launch the app pipelines use

sh terraform.sh apply app

To launch the iac pipelines use

sh terraform.sh apply iac

Precommit check

Check your code before commit.

https://github.com/antonbabenko/pre-commit-terraform#how-to-install

pre-commit run -a

Here is a reference table about who uses resources and theirs paths from this CDN

Service Database/collection/field Paths github repo search link
Transactions-service apm https://github.com/search?q=repo%3Apagopa%2Fpagopa-ecommerce-transactions-service+https%3A%2F%2Fassets.cdn.platform.pagopa.it%2Fapm&type=code
Transactions-service creditcard https://github.com/search?q=repo%3Apagopa%2Fpagopa-ecommerce-transactions-service+https%3A%2F%2Fassets.cdn.platform.pagopa.it%2Fcreditcard&type=code
eCommerce/paymentMethods/asset apm N/A
eCommerce/paymentMethods/asset creditcard N/A

About

Assets useful to pagoPA platform and products

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published