Skip to content

Commit

Permalink
Merge branch 'rootstock' of https://github.com/DistributedCollective/…
Browse files Browse the repository at this point in the history
  • Loading branch information
gofman8 committed Aug 9, 2024
2 parents 5aaccf2 + b9ae150 commit 18ea380
Show file tree
Hide file tree
Showing 10 changed files with 785 additions and 223 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci-properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"app_name": "rootstock-transaction-service",
"aws_region": "us-east-2",
"k8s_cluster_name": "k8-mainnet",
"registry": "docker.io",
"image_name": "sovryn/rootstock-transaction-service",
"prod_branch": "rootstock",
"dev_branch": "rootstock-stg",
"dockerfile_path": "./docker/web",
"APP_ENV_VARS": {
"PYTHONPATH": "/app/",
"C_FORCE_ROOT": "true",
"DEBUG": "0",
"ETH_L2_NETWORK": "1",
"ETH_INTERNAL_NO_FILTER": "1",
"DJANGO_SU_NAME": "sovryn",
"DJANGO_SU_EMAIL": "[email protected]",
"DJANGO_SETTINGS_MODULE": "config.settings.production"
},
"DEV_ENV_VARS": {
"INGRESS_HOSTNAME": "safe-tx.test.sovryn.app"
},
"PROD_ENV_VARS": {
"INGRESS_HOSTNAME": "safe-tx.sovryn.app"
}
}
36 changes: 0 additions & 36 deletions .github/workflows/cla.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI Template

on:
push:
branches: [ rootstock, rootstock-stg ]
workflow_dispatch:

jobs:
call-workflow-init:
uses: DistributedCollective/.github/.github/workflows/init.yml@master
with:
ref: ${{ github.ref }}
base_ref: ${{ github.base_ref }}
call-workflow-docker-build:
uses: DistributedCollective/.github/.github/workflows/docker.yml@master
needs: [call-workflow-init]
with:
KUBE_NAMESPACE: ${{ needs.call-workflow-init.outputs.KUBE_NAMESPACE }}
IMAGE_NAME: ${{ needs.call-workflow-init.outputs.image_name }}
event_name: ${{ github.event_name }}
registry: ${{ needs.call-workflow-init.outputs.registry }}
dockerfile_path: ${{ needs.call-workflow-init.outputs.dockerfile_path }}
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
call-workflow-k8s-deploy:
uses: DistributedCollective/.github/.github/workflows/deploy-k8s.yml@master
needs: [call-workflow-init, call-workflow-docker-build]
if: github.event_name != 'pull_request'
with:
KUBE_NAMESPACE: ${{ needs.call-workflow-init.outputs.KUBE_NAMESPACE }}
IMAGE_NAME: ${{ needs.call-workflow-init.outputs.image_name }}
ci_env: ${{ needs.call-workflow-init.outputs.ci_env }}
aws_region: ${{ needs.call-workflow-init.outputs.aws_region }}
k8s_cluster_name: ${{ needs.call-workflow-init.outputs.k8s_cluster_name }}
app_name: ${{ needs.call-workflow-init.outputs.app_name }}
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
179 changes: 0 additions & 179 deletions .github/workflows/python.yml

This file was deleted.

1 change: 1 addition & 0 deletions config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
# ------------------------------------------------------------------------------
# Django Admin URL regex.
ADMIN_URL = env("DJANGO_ADMIN_URL", default="admin/")
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTOCOL", "https")

# Gunicorn
# ------------------------------------------------------------------------------
Expand Down
Loading

0 comments on commit 18ea380

Please sign in to comment.