-
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.
Merge pull request #50 from gnosischain/feat/improvements
Feat/improvements
- Loading branch information
Showing
25 changed files
with
351 additions
and
138 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 |
---|---|---|
|
@@ -77,28 +77,28 @@ jobs: | |
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
eks-deployment-restart: | ||
# Run job on branch dev only | ||
if: github.ref == 'refs/heads/dev' | ||
runs-on: ubuntu-latest | ||
needs: build-and-push-image | ||
permissions: | ||
id-token: write # Required for the OIDC, see https://github.com/aws-actions/configure-aws-credentials?tab=readme-ov-file#OIDC | ||
contents: read | ||
steps: | ||
- name: configure aws credentials | ||
uses: aws-actions/[email protected] | ||
with: | ||
audience: sts.amazonaws.com | ||
role-to-assume: ${{ secrets.DEV_AWS_EKS_ROLE }} | ||
role-session-name: GitHub_to_AWS_via_FederatedOIDC | ||
aws-region: ${{ secrets.DEV_AWS_REGION }} | ||
# eks-deployment-restart: | ||
# # Run job on branch dev only | ||
# if: github.ref == 'refs/heads/dev' | ||
# runs-on: ubuntu-latest | ||
# needs: build-and-push-image | ||
# permissions: | ||
# id-token: write # Required for the OIDC, see https://github.com/aws-actions/configure-aws-credentials?tab=readme-ov-file#OIDC | ||
# contents: read | ||
# steps: | ||
# - name: configure aws credentials | ||
# uses: aws-actions/[email protected] | ||
# with: | ||
# audience: sts.amazonaws.com | ||
# role-to-assume: ${{ secrets.DEV_AWS_EKS_ROLE }} | ||
# role-session-name: GitHub_to_AWS_via_FederatedOIDC | ||
# aws-region: ${{ secrets.DEV_AWS_REGION }} | ||
|
||
- name: Configure kubectl for EKS | ||
run: aws eks update-kubeconfig --name ${{ secrets.DEV_AWS_EKS_CLUSTER }} --region ${{ secrets.DEV_AWS_REGION }} | ||
# - name: Configure kubectl for EKS | ||
# run: aws eks update-kubeconfig --name ${{ secrets.DEV_AWS_EKS_CLUSTER }} --region ${{ secrets.DEV_AWS_REGION }} | ||
|
||
- name: Restart Bridge Explorer Deployment | ||
if: github.ref == 'refs/heads/dev' | ||
run: | | ||
kubectl config use-context arn:aws:eks:${{ secrets.DEV_AWS_REGION }}:${{ secrets.DEV_AWS_ACCOUNT_ID }}:cluster/${{ secrets.DEV_AWS_EKS_CLUSTER }} | ||
kubectl rollout restart deploy/${{ secrets.DEV_AWS_EKS_DEPLOYMENT_API }} -n ${{ secrets.DEV_AWS_EKS_NAMESPACE }} | ||
# - name: Restart Deployment | ||
# if: github.ref == 'refs/heads/dev' | ||
# run: | | ||
# kubectl config use-context arn:aws:eks:${{ secrets.DEV_AWS_REGION }}:${{ secrets.DEV_AWS_ACCOUNT_ID }}:cluster/${{ secrets.DEV_AWS_EKS_CLUSTER }} | ||
# kubectl rollout restart deploy/${{ secrets.DEV_AWS_EKS_DEPLOYMENT_API }} -n ${{ secrets.DEV_AWS_EKS_NAMESPACE }} |
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 |
---|---|---|
|
@@ -55,7 +55,7 @@ jobs: | |
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
build-args: | | ||
"REACT_APP_HCAPTCHA_SITE_KEY=${{ secrets.DEV_REACT_APP_HCAPTCHA_SITE_KEY }}" | ||
"REACT_APP_CAPTCHA_SITE_KEY=${{ secrets.DEV_REACT_APP_CAPTCHA_SITE_KEY }}" | ||
"REACT_APP_FAUCET_API_URL=${{ secrets.DEV_REACT_APP_FAUCET_API_URL}}" | ||
- name: Gnosis Chain - Main branch / tags - Build and push Docker image | ||
|
@@ -67,7 +67,7 @@ jobs: | |
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-gc | ||
labels: ${{ steps.meta.outputs.labels }} | ||
build-args: | | ||
"REACT_APP_HCAPTCHA_SITE_KEY=${{ secrets.PROD_GC_REACT_APP_HCAPTCHA_SITE_KEY }}" | ||
"REACT_APP_CAPTCHA_SITE_KEY=${{ secrets.PROD_GC_REACT_APP_CAPTCHA_SITE_KEY }}" | ||
"REACT_APP_FAUCET_API_URL=${{ secrets.PROD_GC_REACT_APP_FAUCET_API_URL}}" | ||
- name: Chiado Chain - Main branch / tags - Build and push Docker image | ||
|
@@ -79,31 +79,31 @@ jobs: | |
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-chiado | ||
labels: ${{ steps.meta.outputs.labels }} | ||
build-args: | | ||
"REACT_APP_HCAPTCHA_SITE_KEY=${{ secrets.PROD_CHIADO_REACT_APP_HCAPTCHA_SITE_KEY }}" | ||
"REACT_APP_CAPTCHA_SITE_KEY=${{ secrets.PROD_CHIADO_REACT_APP_CAPTCHA_SITE_KEY }}" | ||
"REACT_APP_FAUCET_API_URL=${{ secrets.PROD_CHIADO_REACT_APP_FAUCET_API_URL}}" | ||
eks-deployment-restart: | ||
# Run job on branch dev only | ||
if: github.ref == 'refs/heads/dev' | ||
runs-on: ubuntu-latest | ||
needs: build-and-push-image | ||
permissions: | ||
id-token: write # Required for the OIDC, see https://github.com/aws-actions/configure-aws-credentials?tab=readme-ov-file#OIDC | ||
contents: read | ||
steps: | ||
- name: configure aws credentials | ||
uses: aws-actions/[email protected] | ||
with: | ||
audience: sts.amazonaws.com | ||
role-to-assume: ${{ secrets.DEV_AWS_EKS_ROLE }} | ||
role-session-name: GitHub_to_AWS_via_FederatedOIDC | ||
aws-region: ${{ secrets.DEV_AWS_REGION }} | ||
# eks-deployment-restart: | ||
# # Run job on branch dev only | ||
# if: github.ref == 'refs/heads/dev' | ||
# runs-on: ubuntu-latest | ||
# needs: build-and-push-image | ||
# permissions: | ||
# id-token: write # Required for the OIDC, see https://github.com/aws-actions/configure-aws-credentials?tab=readme-ov-file#OIDC | ||
# contents: read | ||
# steps: | ||
# - name: configure aws credentials | ||
# uses: aws-actions/[email protected] | ||
# with: | ||
# audience: sts.amazonaws.com | ||
# role-to-assume: ${{ secrets.DEV_AWS_EKS_ROLE }} | ||
# role-session-name: GitHub_to_AWS_via_FederatedOIDC | ||
# aws-region: ${{ secrets.DEV_AWS_REGION }} | ||
|
||
- name: Configure kubectl for EKS | ||
run: aws eks update-kubeconfig --name ${{ secrets.DEV_AWS_EKS_CLUSTER }} --region ${{ secrets.DEV_AWS_REGION }} | ||
# - name: Configure kubectl for EKS | ||
# run: aws eks update-kubeconfig --name ${{ secrets.DEV_AWS_EKS_CLUSTER }} --region ${{ secrets.DEV_AWS_REGION }} | ||
|
||
- name: Restart Bridge Explorer Deployment | ||
if: github.ref == 'refs/heads/dev' | ||
run: | | ||
kubectl config use-context arn:aws:eks:${{ secrets.DEV_AWS_REGION }}:${{ secrets.DEV_AWS_ACCOUNT_ID }}:cluster/${{ secrets.DEV_AWS_EKS_CLUSTER }} | ||
kubectl rollout restart deploy/${{ secrets.DEV_AWS_EKS_DEPLOYMENT_UI }} -n ${{ secrets.DEV_AWS_EKS_NAMESPACE }} | ||
# - name: Restart Deployment | ||
# if: github.ref == 'refs/heads/dev' | ||
# run: | | ||
# kubectl config use-context arn:aws:eks:${{ secrets.DEV_AWS_REGION }}:${{ secrets.DEV_AWS_ACCOUNT_ID }}:cluster/${{ secrets.DEV_AWS_EKS_CLUSTER }} | ||
# kubectl rollout restart deploy/${{ secrets.DEV_AWS_EKS_DEPLOYMENT_UI }} -n ${{ secrets.DEV_AWS_EKS_NAMESPACE }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
FAUCET_AMOUNT=0.1 | ||
FAUCET_AMOUNT=0.001 | ||
FAUCET_PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000000 | ||
FAUCET_RPC_URL=https://rpc.chiadochain.net | ||
FAUCET_CHAIN_ID=10200 | ||
FAUCET_DATABASE_URI=sqlite:// | ||
CAPTCHA_VERIFY_ENDPOINT=https://api.hcaptcha.com/siteverify | ||
CAPTCHA_SECRET_KEY=0x0000000000000000000000000000000000000000 | ||
CAPTCHA_SITE_KEY=xxxxx-xxxxx-xxxxx-xxxxx | ||
CAPTCHA_SITE_KEY=xxxxx-xxxxx-xxxxx-xxxxx | ||
CSRF_PRIVATE_KEY="!!CREATE_YOUR_RSA_PRIVATE_KEY!!" | ||
CSRF_SECRET_SALT="test-salt" |
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
Oops, something went wrong.