Skip to content

Commit

Permalink
Merge branch 'main' into deploy/first-test
Browse files Browse the repository at this point in the history
  • Loading branch information
mckrava committed Dec 7, 2023
2 parents 6b6de9a + 7043ee9 commit 548bc45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ jobs:
run: doctl kubernetes cluster kubeconfig save --expiry-seconds 600 ${{ secrets.K8S_PROD }}

- name: Update docker image name
run: TAG=${{ env.name }}-$(echo $GITHUB_SHA | head -c7) && sed -i 's|<IMAGE>|dappforce/subsocial-aggregation:'${TAG}'|' $GITHUB_WORKSPACE/deployment/prod/core/deploy.yaml
run: TAG=${{ env.name }}-$(echo $GITHUB_SHA | head -c7) && sed -i 's|<IMAGE>|dappforce/subsocial-aggregation:'${TAG}'|' $GITHUB_WORKSPACE/deployment/prod/deploy.yaml

- name: Deploy to DigitalOcean Kubernetes
run: |
kubectl apply -f $GITHUB_WORKSPACE/deployment/prod/core/all.yaml
kubectl apply -f $GITHUB_WORKSPACE/deployment/prod/core/deploy.yaml
kubectl apply -f $GITHUB_WORKSPACE/deployment/prod/all.yaml
kubectl apply -f $GITHUB_WORKSPACE/deployment/prod/deploy.yaml
- name: Verify deployment
run: kubectl -n sub-id rollout status deployment/aggregation
10 changes: 5 additions & 5 deletions deployment/prod/all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ metadata:
spec:
ingressClassName: nginx
rules:
- host: aggregation.subsocial.network
- host: tx-aggregation.subsocial.network
http:
paths:
- backend:
Expand All @@ -44,17 +44,17 @@ spec:

tls:
- hosts:
- aggregation.subsocial.network
secretName: subsocial-ssl
- tx-aggregation.subsocial.network
secretName: subsocial-ssl2

---
apiVersion: v1
kind: ConfigMap
metadata:
name: aggregationenv
name: aggregation-env
namespace: sub-id
data:
AGGREGATOR_DB_DATABASE: 'aggregator_pool'
AGGREGATOR_DB_DATABASE: 'aggregation_pool'
AGGREGATOR_REDIS_HOST: 'redis-aggregation-master.default'
AGGREGATOR_REDIS_PREFIX: 'aggregator_queue'
AGGREGATOR_REDIS_PORT: '6379'
Expand Down

0 comments on commit 548bc45

Please sign in to comment.