Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/main-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,27 @@ jobs:
role-session-name: ${{ inputs.role_session_name }}
aws-region: ${{ inputs.aws_region }}

- name: Create Parameters file
run: echo '${{ inputs.helm_values }}' > parameters.json

- name: Deploy
uses: vimeda/[email protected]
with:
helm: helm3
chart: lykon-charts/lykon-service
chart-version: "0.10.4"
chart-version: "0.10.1"
track: stable
version: ${{ github.sha }}
token: ${{ github.token }}
secrets: ${{ toJSON(secrets) }}
value-files: ${{ inputs.helm_value_files }}
value-files: '[
${{ inputs.helm_values_files }},
"./parameters.json"]'
repo: ${{ secrets.CHARTMUSEUM_REPO }}
repo-alias: lykon-charts
repo-username: ${{ secrets.CHARTMUSEUM_USERNAME }}
repo-password: ${{ secrets.CHARTMUSEUM_PASSWORD }}
release: ${{ inputs.release_name }}
namespace: ${{ inputs.namespace }}
values: ${{ inputs.helm_values }}
env:
KUBECONFIG_FILE: ${{ secrets.STAGING_KUBECONFIG }}
10 changes: 5 additions & 5 deletions .github/workflows/main-terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
working_directory:
required: true
type: string
staging_tfvars_json:
required: true
type: string

permissions:
id-token: write
Expand Down Expand Up @@ -41,11 +44,8 @@ jobs:
role-session-name: ${{ inputs.role_session_name }}
aws-region: ${{ inputs.aws_region }}

- name: Download Staging Variables
uses: actions/download-artifact@v3
with:
name: staging-variables
path: ${{ inputs.working_directory }}
- name: Create Parameters file
run: echo '${{ inputs.staging_tfvars_json }}' > staging.tfvars.json

- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/release-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,27 @@ jobs:
role-session-name: ${{ inputs.role_session_name }}
aws-region: ${{ inputs.aws_region }}

- name: Create Parameters file
run: echo '${{ inputs.helm_values }}' > parameters.json

- name: Deploy
uses: vimeda/[email protected]
with:
helm: helm3
chart: lykon-charts/lykon-service
chart-version: "0.10.4"
chart-version: "0.10.1"
track: stable
version: ${{ github.sha }}
token: ${{ github.token }}
secrets: ${{ toJSON(secrets) }}
value-files: ${{ inputs.helm_value_files }}
value-files: '[
${{ inputs.helm_values_files }},
"./parameters.json"]'
repo: ${{ secrets.CHARTMUSEUM_REPO }}
repo-alias: lykon-charts
repo-username: ${{ secrets.CHARTMUSEUM_USERNAME }}
repo-password: ${{ secrets.CHARTMUSEUM_PASSWORD }}
release: ${{ inputs.release_name }}
namespace: ${{ inputs.namespace }}
values: ${{ inputs.helm_values }}
env:
KUBECONFIG_FILE: ${{ secrets.PROD_KUBECONFIG }}
12 changes: 6 additions & 6 deletions .github/workflows/release-terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
working_directory:
required: true
type: string
prod_tfvars_json:
required: true
type: string

permissions:
id-token: write
Expand Down Expand Up @@ -41,11 +44,8 @@ jobs:
role-session-name: ${{ inputs.role_session_name }}
aws-region: ${{ inputs.aws_region }}

- name: Download Prod Variables
uses: actions/download-artifact@v3
with:
name: prod-variables
path: ${{ inputs.working_directory }}
- name: Create Parameters file
run: echo '${{ inputs.prod_tfvars_json }}' > prod.tfvars.json

- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
Expand All @@ -60,5 +60,5 @@ jobs:
id: apply-prod
run: terraform apply -no-color -var-file=prod.tfvars.json
env:
TF_WORKSPACE: staging
TF_WORKSPACE: prod
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}