Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Commit

Permalink
feat: upgrade actions
Browse files Browse the repository at this point in the history
  • Loading branch information
arein committed May 22, 2023
1 parent c138cf1 commit ad2dc12
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci_terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ jobs:

- name: Init Terraform
id: tf-init
uses: WalletConnect/actions/terraform/init/@1.0.0
uses: WalletConnect/actions/terraform/init/@1.0.3
with:
environment: staging

- name: Check Terraform Formatting
id: tf-fmt
uses: WalletConnect/actions/terraform/check-fmt/@1.0.0
uses: WalletConnect/actions/terraform/check-fmt/@1.0.3


get-version:
Expand Down Expand Up @@ -109,24 +109,24 @@ jobs:

- name: Get Grafana details
id: grafana-get-details
uses: WalletConnect/actions/aws/grafana/get-details/@1.0.0
uses: WalletConnect/actions/aws/grafana/get-details/@1.0.3

- name: Get Grafana key
id: grafana-get-key
uses: WalletConnect/actions/aws/grafana/get-key/@1.0.0
uses: WalletConnect/actions/aws/grafana/get-key/@1.0.3
with:
key-prefix: ${{ github.event.repository.name }}-staging
workspace-id: ${{ steps.grafana-get-details.outputs.workspace-id }}

- name: Init Terraform
id: tf-init
uses: WalletConnect/actions/terraform/init/@1.0.0
uses: WalletConnect/actions/terraform/init/@1.0.3
with:
environment: staging

- name: Run Terraform Plan
id: tf-plan-staging
uses: WalletConnect/actions/terraform/plan/@1.0.0
uses: WalletConnect/actions/terraform/plan/@1.0.3
env:
GRAFANA_AUTH: ${{ steps.grafana-get-key.outputs.key }}
TF_VAR_grafana_endpoint: ${{ steps.grafana-get-details.outputs.endpoint }}
Expand All @@ -137,7 +137,7 @@ jobs:

- name: Delete Grafana key
id: grafana-delete-key
uses: WalletConnect/actions/aws/grafana/delete-key/@1.0.0
uses: WalletConnect/actions/aws/grafana/delete-key/@1.0.3
if: ${{ success() || failure() || cancelled() }} # don't use always() since it creates non-cancellable jobs
with:
key-name: ${{ steps.grafana-get-key.outputs.key-name }}
Expand Down Expand Up @@ -176,24 +176,24 @@ jobs:

- name: Get Grafana details
id: grafana-get-details
uses: WalletConnect/actions/aws/grafana/get-details/@1.0.0
uses: WalletConnect/actions/aws/grafana/get-details/@1.0.3

- name: Get Grafana key
id: grafana-get-key
uses: WalletConnect/actions/aws/grafana/get-key/@1.0.0
uses: WalletConnect/actions/aws/grafana/get-key/@1.0.3
with:
key-prefix: ${{ github.event.repository.name }}-prod
workspace-id: ${{ steps.grafana-get-details.outputs.workspace-id }}

- name: Init Terraform
id: tf-init
uses: WalletConnect/actions/terraform/init/@1.0.0
uses: WalletConnect/actions/terraform/init/@1.0.3
with:
environment: prod

- name: Run Terraform Plan
id: tf-plan-staging
uses: WalletConnect/actions/terraform/plan/@1.0.0
uses: WalletConnect/actions/terraform/plan/@1.0.3
env:
GRAFANA_AUTH: ${{ steps.grafana-get-key.outputs.key }}
TF_VAR_grafana_endpoint: ${{ steps.grafana-get-details.outputs.endpoint }}
Expand All @@ -204,7 +204,7 @@ jobs:

- name: Delete Grafana key
id: grafana-delete-key
uses: WalletConnect/actions/aws/grafana/delete-key/@1.0.0
uses: WalletConnect/actions/aws/grafana/delete-key/@1.0.3
if: ${{ success() || failure() || cancelled() }} # don't use always() since it creates non-cancellable jobs
with:
key-name: ${{ steps.grafana-get-key.outputs.key-name }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/deploy-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,24 +62,24 @@ jobs:

- name: Get Grafana details
id: grafana-get-details
uses: WalletConnect/actions/aws/grafana/get-details/@1.0.0
uses: WalletConnect/actions/aws/grafana/get-details/@1.0.3

- name: Get Grafana key
id: grafana-get-key
uses: WalletConnect/actions/aws/grafana/get-key/@1.0.0
uses: WalletConnect/actions/aws/grafana/get-key/@1.0.3
with:
key-prefix: ${{ github.event.repository.name }}
workspace-id: ${{ steps.grafana-get-details.outputs.workspace-id }}

- name: Init Terraform
id: tf-init
uses: WalletConnect/actions/terraform/init/@1.0.0
uses: WalletConnect/actions/terraform/init/@1.0.3
with:
environment: ${{ inputs.environment }}

- name: Deploy Terraform to ${{ inputs.environment }}
id: tf-apply
uses: WalletConnect/actions/terraform/apply/@1.0.0
uses: WalletConnect/actions/terraform/apply/@1.0.3
env:
GRAFANA_AUTH: ${{ steps.grafana-get-key.outputs.key }}
TF_VAR_grafana_endpoint: ${{ steps.grafana-get-details.outputs.endpoint }}
Expand All @@ -89,7 +89,7 @@ jobs:

- name: Delete Grafana key
id: grafana-delete-key
uses: WalletConnect/actions/aws/grafana/delete-key/@1.0.0
uses: WalletConnect/actions/aws/grafana/delete-key/@1.0.3
if: ${{ success() || failure() || cancelled() }} # don't use always() since it creates non-cancellable jobs
with:
key-name: ${{ steps.grafana-get-key.outputs.key-name }}
Expand Down

0 comments on commit ad2dc12

Please sign in to comment.