Skip to content

Commit

Permalink
feat: [P4PU-000] Promote to UAT (#166)
Browse files Browse the repository at this point in the history
<!--- Please always add a PR description as if nobody knows anything
about the context these changes come from. -->
<!--- Even if we are all from our internal team, we may not be on the
same page. -->
<!--- Write this PR as you were contributing to a public OSS project,
where nobody knows you and you have to earn their trust. -->
<!--- This will improve our projects in the long run! Thanks. -->

#### List of Changes
- Added send slack notification step
- fixed mapper
- removed useless file
- Payments flow triggers for azdo
- payments updated actions with tag version 1.19.2 
<!--- Describe your changes in detail -->

#### Motivation and Context

<!--- Why is this change required? What problem does it solve? -->

#### How Has This Been Tested?

<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, tests ran to see how
-->
<!--- your change affects other areas of the code, etc. -->

#### Screenshots (if appropriate):

#### Types of changes

<!--- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)

#### Checklist:

<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->

- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
  • Loading branch information
Giuseppe-LaManna authored Nov 29, 2024
2 parents a8b793f + a330a64 commit 30fe299
Show file tree
Hide file tree
Showing 18 changed files with 97 additions and 617 deletions.
201 changes: 0 additions & 201 deletions .devops/deploy-pipelines.yml

This file was deleted.

7 changes: 3 additions & 4 deletions .github/workflows/payments-flow-docker-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,16 @@ jobs:
ref: ${{ env.CURRENT_BRANCH }}

- name: 📦 Run Snapshot Docker Build/Push & Trigger
# https://github.com/pagopa/github-actions-template/releases/tag/v1.19.0
uses: pagopa/github-actions-template/payments-flow-docker-snapshot@37569377fa759368a01c1e7f40700b4118d65d0c
# https://github.com/pagopa/github-actions-template/releases/tag/v1.19.2
uses: pagopa/github-actions-template/payments-flow-docker-snapshot@922ed4e43b0e45a5e47eb0296d550996d8c87c64
with:
current_branch: ${{ github.ref_name }}
enable_azure_devops_step: 'true'
azure_devops_apps: "[arc-be]"
azure_devops_project_url: 'https://dev.azure.com/pagopaspa/arc-projects'
azure_devops_pipeline_name: 'arc-cittadini-deploy-aks.deploy'
azure_devops_pat: ${{ secrets.AZUREDEVOPS_PAT }}
azure_template_parameters: |
{
"APPS": "[one-color]",
"APPS": "[arb-be]",
"POSTMAN_BRANCH": "${{ github.ref_name }}"
}
13 changes: 11 additions & 2 deletions .github/workflows/payments-flow-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,16 @@ jobs:
ref: ${{ github.ref_name }}

- name: 🚀 release + docker + azdo
# https://github.com/pagopa/github-actions-template/releases/tag/v1.19.1
uses: pagopa/github-actions-template/payments-flow-release@3ae6a4268ccff000194696b21e1124d9e8ddf997
# https://github.com/pagopa/github-actions-template/releases/tag/v1.19.2
uses: pagopa/github-actions-template/payments-flow-release@922ed4e43b0e45a5e47eb0296d550996d8c87c64
with:
current_branch: ${{ github.ref_name }}
enable_azure_devops_step: 'true'
azure_devops_project_url: 'https://dev.azure.com/pagopaspa/arc-projects'
azure_devops_pipeline_name: 'arc-cittadini-deploy-aks.deploy'
azure_devops_pat: ${{ secrets.AZUREDEVOPS_PAT }}
azure_template_parameters: |
{
"APPS": "[arb-be]",
"POSTMAN_BRANCH": "${{ github.ref_name }}"
}
45 changes: 18 additions & 27 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,30 +64,21 @@ jobs:
echo "CVE_MEDIUM=$(echo $SCAN_RESULTS | grep -o medium | wc -l)" >> $GITHUB_ENV
echo -e $SCAN_RESULTS
# - name: Send notification to Slack
# id: slack
# if: always() && github.event_name == 'schedule' && steps.scan.outcome == 'failure'
# uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 #v1.24.0
# with:
# payload: |
# {
# "blocks": [
# {
# "type": "header",
# "text": {
# "type": "plain_text",
# "text": "${{ github.event.repository.name }} - Notification Scan Result Failed on ${{ github.ref_type }} ${{ github.ref_name }}!"
# }
# },
# {
# "type": "section",
# "text": {
# "type": "mrkdwn",
# "text": "GitHub Action scan results:\n`CRITICAL`: ${{ env.CVE_CRITICAL }}\n`HIGH`: ${{ env.CVE_HIGH }}\n`MEDIUM`: ${{ env.CVE_MEDIUM }}\n\n<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|See execution details on GitHub>"
# }
# }
# ]
# }
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.CVE_SCAN_SLACK_WEBHOOK }}
# SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
- name: Send notification to Slack
id: slack
if: always() && github.event_name == 'schedule' && steps.scan.outcome == 'failure'
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d #v2.0.0
with:
payload: |
blocks:
- type: "header"
text:
type: "plain_text"
text: "${{ github.event.repository.name }} - Notification Scan Result Failed on ${{ github.ref_type }} ${{ github.ref_name }}!"
- type: "section"
text:
type: "mrkdwn"
text: "GitHub Action scan results:\n`CRITICAL`: ${{ env.CVE_CRITICAL }}\n`HIGH`: ${{ env.CVE_HIGH }}\n`MEDIUM`: ${{ env.CVE_MEDIUM }}\n\n<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|See execution details on GitHub>"
env:
SLACK_WEBHOOK_URL: ${{ secrets.CVE_SCAN_SLACK_WEBHOOK }}
SLACK_WEBHOOK_TYPE: incoming-webhook
2 changes: 1 addition & 1 deletion force-release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1714
1117
23 changes: 0 additions & 23 deletions helm/.helmignore

This file was deleted.

6 changes: 0 additions & 6 deletions helm/Chart.lock

This file was deleted.

10 changes: 0 additions & 10 deletions helm/Chart.yaml

This file was deleted.

41 changes: 0 additions & 41 deletions helm/values-dev.yaml

This file was deleted.

Loading

0 comments on commit 30fe299

Please sign in to comment.