Skip to content

Commit

Permalink
[PRDP-122] feat: refactored app to use express, streamlined structure…
Browse files Browse the repository at this point in the history
… to use a single Dockerfile
  • Loading branch information
alexyey committed Sep 11, 2023
1 parent fa6f851 commit 023c699
Show file tree
Hide file tree
Showing 61 changed files with 1,353 additions and 524 deletions.
59 changes: 0 additions & 59 deletions .github/ghcr_build_push/action.yml

This file was deleted.

114 changes: 0 additions & 114 deletions .github/maven_code_review/action.yml

This file was deleted.

89 changes: 0 additions & 89 deletions .github/maven_release/action.yml

This file was deleted.

7 changes: 1 addition & 6 deletions .github/workflows/code_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,14 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:

- name: checkout repo
uses: actions/checkout@v2

- name: Code Review
uses: ./.github/maven_code_review
uses: pagopa/github-actions-template/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
sonar_token: ${{ secrets.SONAR_TOKEN }}
project_key: ${{env.PROJECT_KEY}}
coverage_exclusions: "**/config/*,**/*Mock*,**/model/**,**/entity/*"
cpd_exclusions: "**/model/**,**/entity/*"
pom_path: "java"

smoke-test:
name: Smoke Test
Expand Down
30 changes: 4 additions & 26 deletions .github/workflows/release-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,54 +82,32 @@ jobs:
outputs:
version: ${{ steps.release.outputs.version }}
steps:
- name: checkout repo
uses: actions/checkout@v2

- name: Make Release
id: release
uses: ./.github/maven_release
uses: pagopa/github-actions-template/[email protected]
with:
semver: ${{ needs.setup.outputs.semver }}
github_token: ${{ secrets.BOT_TOKEN_GITHUB }}
beta: ${{ inputs.beta }}
skip_ci: ${{ inputs.beta }}
pom_path: "java"

java-image:
needs: [ setup, release ]
name: Build and Push Docker Image
runs-on: ubuntu-latest
if: ${{ inputs.semver != 'skip' }}
steps:
- name: Build and Push
id: semver
uses: ./.github/ghcr_build_push
with:
branch: ${{ github.ref_name}}
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ needs.release.outputs.version }}
context_path: "./java"
image_suffix: "-java"

node-image:
image:
needs: [ setup, release ]
name: Build and Push Docker Image
runs-on: ubuntu-latest
if: ${{ inputs.semver != 'skip' }}
steps:
- name: Build and Push
id: semver
uses: ./.github/ghcr_build_push
uses: pagopa/github-actions-template/[email protected]
with:
branch: ${{ github.ref_name}}
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ needs.release.outputs.version }}
context_path: "./node"
image_suffix: "-node"

deploy_aks:
name: Deploy on AKS
needs: [ setup, release, java-image, node-image ]
needs: [ setup, release, image ]
if: ${{ always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
strategy:
matrix:
Expand Down
File renamed without changes.
Loading

0 comments on commit 023c699

Please sign in to comment.