generated from pagopa/pagopa-functions-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PRDP-122] feat: refactored app to use express, streamlined structure…
… to use a single Dockerfile
- Loading branch information
Showing
61 changed files
with
1,353 additions
and
524 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
File renamed without changes.
Oops, something went wrong.