-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from pagopa/test-deploy
cd(HELM): [PAGOPA-deploy] Add HELM 3 GHA
- Loading branch information
Showing
33 changed files
with
1,277 additions
and
335 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -2,8 +2,8 @@ name: Release And Deploy | |
|
||
# Controls when the workflow will run | ||
on: | ||
# pull_request: | ||
# types: [ closed ] CURRENTLY COMMENTED IN ORDER TO AVOID AUTOMATIC DEPLOY ON DEV AFTER PR CLOSING | ||
# pull_request: | ||
# types: [ closed ] CURRENTLY COMMENTED IN ORDER TO AVOID AUTOMATIC DEPLOY ON DEV AFTER PR CLOSING | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
@@ -16,6 +16,14 @@ on: | |
- dev | ||
- uat | ||
- prod | ||
component: | ||
required: true | ||
type: choice | ||
description: Select fdr or cron | ||
default: "fdr" | ||
options: | ||
- fdr | ||
- cron | ||
beta: | ||
required: false | ||
type: boolean | ||
|
@@ -44,6 +52,7 @@ jobs: | |
outputs: | ||
semver: ${{ steps.get_semver.outputs.semver }} | ||
environment: ${{ steps.get_env.outputs.environment }} | ||
working_dir: ${{ steps.set_working_directory.outputs.helm_folder }} | ||
steps: | ||
- name: pull request rejected | ||
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged != true | ||
|
@@ -83,7 +92,6 @@ jobs: | |
name: Set Output | ||
run: echo "environment=${{env.ENVIRNOMENT}}" >> $GITHUB_OUTPUT | ||
|
||
|
||
release: | ||
name: Create a New Release | ||
runs-on: ubuntu-latest | ||
|
@@ -93,26 +101,30 @@ jobs: | |
steps: | ||
- name: Make Release | ||
id: release | ||
uses: pagopa/github-actions-template/maven-release@d91a1fd0b913c9830589be5d86cdb71c90813fae # v1.5.4 | ||
uses: pagopa/github-actions-template/sbt-release@a93315d4b293eb883c4f126c2bae7dcef2f70c20 # v1.21.0 | ||
with: | ||
semver: ${{ needs.setup.outputs.semver }} | ||
github_token: ${{ secrets.BOT_TOKEN_GITHUB }} | ||
beta: ${{ inputs.beta }} | ||
skip_ci: false | ||
working_directory: helm-${{ inputs.component }} | ||
|
||
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: pagopa/github-actions-template/[email protected] | ||
# with: | ||
# branch: ${{ github.ref_name}} | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# tag: ${{ needs.release.outputs.version }} | ||
|
||
- name: Checkout Java | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '11' | ||
|
||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | ||
with: | ||
ref: ${{ github.ref_name }} | ||
|
@@ -135,10 +147,16 @@ jobs: | |
type=ref,event=branch | ||
type=sha | ||
- name: Create Dockerfile | ||
env: | ||
LIGHTBEND_KEY: ${{ secrets.LIGHTBEND_KEY }} | ||
run: | | ||
./sbt -v docker:stage | ||
- name: Build and push | ||
uses: docker/build-push-action@0a97817b6ade9f46837855d676c4cca3a2471fc9 # v4 | ||
with: | ||
context: . | ||
context: ./fdr/target/docker/stage | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
@@ -156,6 +174,7 @@ jobs: | |
with: | ||
environment: ${{ matrix.environment }} | ||
target: ${{ needs.setup.outputs.environment }} | ||
component: ${{ inputs.component }} | ||
secrets: inherit | ||
|
||
notify: | ||
|
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
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
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
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
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
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
helm/fdr-cron/weu-prod/values-prod.yaml → helm-cron/helm/values-prod.yaml
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cj-ftp-upload: | ||
cronnodo: | ||
namespace: "fdr" | ||
schedule: "0/5 * * * *" | ||
args: [ ftpUpload ] | ||
|
2 changes: 1 addition & 1 deletion
2
helm/fdr-cron/weu-uat/values-uat.yaml → helm-cron/helm/values-uat.yaml
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cj-ftp-upload: | ||
cronnodo: | ||
namespace: "fdr" | ||
schedule: "0/5 * * * *" | ||
args: [ ftpUpload ] | ||
|
Oops, something went wrong.