Skip to content

Commit

Permalink
fix networking
Browse files Browse the repository at this point in the history
  • Loading branch information
rikukissa committed Sep 12, 2024
1 parent 58260f8 commit 645ea9a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 50 deletions.
31 changes: 1 addition & 30 deletions .github/workflows/deploy-and-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
core-image-tag: ${{ github.event.inputs.core-image-tag || needs.get-core-commit.outputs.latest_commit_sha }}
countryconfig-image-tag: ${{ github.event.inputs.countryconfig-image-tag || needs.get-country-config-commit.outputs.short_sha }}
stack: ${{ github.event.inputs.stack }}
dependencies: false
reset: 'true'
secrets: inherit

Expand Down Expand Up @@ -160,33 +161,3 @@ jobs:
id: set-output
run: |
echo "result=$PREVIOUS_CONCLUSION" >> $GITHUB_OUTPUT
notify-slack:
name: Notify Slack on Failure
runs-on: ubuntu-latest
needs: [deploy, discover-tests, test, get-previous-run]
if: failure()
steps:
- name: Send Slack notification
if: needs.get-previous-run.outputs.previous_run_result == 'success'
uses: slackapi/[email protected]
with:
channel-id: 'C02LU432JGK'
slack-message: "❌ E2E pipeline triggered by ${{ github.event.client_payload.actor || github.actor }}'s commit failed. Check the logs at https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}."
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

notify-slack-success:
name: Notify Slack on success
runs-on: ubuntu-latest
needs: [deploy, discover-tests, test, get-previous-run]
if: success()
steps:
- name: Send Slack notification
if: needs.get-previous-run.outputs.previous_run_result == 'failure'
uses: slackapi/[email protected]
with:
channel-id: 'C02LU432JGK'
slack-message: "✅ E2E pipeline triggered by ${{ github.event.client_payload.actor || github.actor }}'s fixed the failing tests 🤩!. Check the logs at https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}."
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
38 changes: 19 additions & 19 deletions infrastructure/docker-compose.app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
- source: hearth-queryparam-extensions-conf.{{ts}}
target: /src/hearth/config/queryparam-extensions.json
networks:
- overlay_net
- {{STACK}}_overlay_net
- dependencies_overlay_net
logging:
driver: gelf
Expand All @@ -46,7 +46,7 @@ services:
labels:
- 'traefik.enable=false'
networks:
- overlay_net
- {{STACK}}_overlay_net
- dependencies_overlay_net
logging:
driver: gelf
Expand Down Expand Up @@ -115,7 +115,7 @@ services:
- INFOBIP_SENDER_ID=${INFOBIP_SENDER_ID:-}
- DOMAIN=${STACK}.{{hostname}}
networks:
- overlay_net
- {{STACK}}_overlay_net
- dependencies_overlay_net
logging:
driver: gelf
Expand Down Expand Up @@ -148,7 +148,7 @@ services:
- 'traefik.http.middlewares.${STACK}__login.headers.stspreload=true'
replicas: 1
networks:
- overlay_net
- {{STACK}}_overlay_net
- dependencies_overlay_net
logging:
driver: gelf
Expand Down Expand Up @@ -187,7 +187,7 @@ services:
- 'traefik.http.middlewares.${STACK}__client.headers.stspreload=true'
replicas: 1
networks:
- overlay_net
- {{STACK}}_overlay_net
- dependencies_overlay_net
logging:
driver: gelf
Expand Down Expand Up @@ -245,7 +245,7 @@ services:
- 'traefik.http.middlewares.${STACK}__gateway.headers.stspreload=true'
replicas: 1
networks:
- overlay_net
- {{STACK}}_overlay_net
- dependencies_overlay_net
logging:
driver: gelf
Expand Down Expand Up @@ -280,7 +280,7 @@ services:
- 'traefik.enable=false'
replicas: 1
networks:
- overlay_net
- {{STACK}}_overlay_net
- dependencies_overlay_net
logging:
driver: gelf
Expand Down Expand Up @@ -310,7 +310,7 @@ services:
- 'traefik.enable=false'
replicas: 1
networks:
- overlay_net
- {{STACK}}_overlay_net
- dependencies_overlay_net
logging:
driver: gelf
Expand Down Expand Up @@ -350,7 +350,7 @@ services:
- 'traefik.enable=false'
replicas: 1
networks:
- overlay_net
- {{STACK}}_overlay_net
- dependencies_overlay_net
logging:
driver: gelf
Expand Down Expand Up @@ -398,7 +398,7 @@ services:
- 'traefik.http.middlewares.${STACK}__auth.headers.stspreload=true'
replicas: 1
networks:
- overlay_net
- {{STACK}}_overlay_net
- dependencies_overlay_net
logging:
driver: gelf
Expand Down Expand Up @@ -429,7 +429,7 @@ services:
- 'traefik.enable=false'
replicas: 1
networks:
- overlay_net
- {{STACK}}_overlay_net
- dependencies_overlay_net
logging:
driver: gelf
Expand Down Expand Up @@ -471,7 +471,7 @@ services:
- 'traefik.http.middlewares.${STACK}__webhooks.headers.stspreload=true'
replicas: 1
networks:
- overlay_net
- {{STACK}}_overlay_net
- dependencies_overlay_net
logging:
driver: gelf
Expand Down Expand Up @@ -523,7 +523,7 @@ services:
- 'traefik.http.routers.${STACK}__block-dashboard-queries.middlewares=${STACK}__block-internal-routes'
replicas: 1
networks:
- overlay_net
- {{STACK}}_overlay_net
- dependencies_overlay_net
logging:
driver: gelf
Expand Down Expand Up @@ -553,7 +553,7 @@ services:
- MINIO_BUCKET=${STACK}--ocrvs
- COUNTRY_CONFIG_URL=http://countryconfig:3040
networks:
- overlay_net
- {{STACK}}_overlay_net
- dependencies_overlay_net
logging:
driver: gelf
Expand All @@ -572,7 +572,7 @@ services:
labels:
- 'traefik.enable=false'
networks:
- overlay_net
- {{STACK}}_overlay_net
- dependencies_overlay_net
logging:
driver: gelf
Expand Down Expand Up @@ -612,7 +612,7 @@ services:
restart_policy:
condition: on-failure
networks:
- overlay_net
- {{STACK}}_overlay_net
- dependencies_overlay_net
logging:
driver: gelf
Expand Down Expand Up @@ -647,7 +647,7 @@ services:
- WEBHOOKS_MONGODB_PASSWORD=${WEBHOOKS_MONGODB_PASSWORD}
- NOTIFICATION_MONGODB_PASSWORD=${NOTIFICATION_MONGODB_PASSWORD}
networks:
- overlay_net
- {{STACK}}_overlay_net
- dependencies_overlay_net
logging:
driver: gelf
Expand All @@ -662,7 +662,7 @@ services:
# Exceed Docker config file 500 kb file limit, thus a volume mount
- /opt/opencrvs/infrastructure/metabase/metabase.init.db.sql:/metabase.init.db.sql
networks:
- overlay_net
- {{STACK}}_overlay_net
- dependencies_overlay_net
environment:
- QA_ENV=true
Expand Down Expand Up @@ -735,6 +735,6 @@ configs:
networks:
dependencies_overlay_net:
external: true
overlay_net:
{{STACK}}_overlay_net:
driver: overlay
attachable: true
1 change: 0 additions & 1 deletion infrastructure/docker-compose.dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -496,4 +496,3 @@ configs:
networks:
overlay_net:
driver: overlay
attachable: true

0 comments on commit 645ea9a

Please sign in to comment.