Skip to content

Commit

Permalink
Merge pull request #1 from DistributedCollective/rootstock-stg
Browse files Browse the repository at this point in the history
Rootstock stg
  • Loading branch information
gofman8 authored Oct 18, 2023
2 parents f555476 + cd36f90 commit ff9275c
Show file tree
Hide file tree
Showing 6 changed files with 214 additions and 217 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci-properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"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.productddion"
}
}
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@ci_envs
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@ci_envs
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 }}
181 changes: 0 additions & 181 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")

# CELERY
# ------------------------------------------------------------------------------
Expand Down
Loading

0 comments on commit ff9275c

Please sign in to comment.