Skip to content

feat: consume messages from channels #578

feat: consume messages from channels

feat: consume messages from channels #578

Workflow file for this run

name: Staging
on:
push:
branches:
- "master"
env:
COMPONENT: bot-telegram
VERSION: latest
CHART_VERSION: 0.0.0
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Registry login
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
- name: Staging
run: make staging
- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: v3.12.0
- name: Helm Lint
run: |
helm lint helm/${COMPONENT}
- name: Helm Package
run: |
helm dependency update helm/${COMPONENT}
helm package helm/${COMPONENT}
- name: Google Cloud Auth
uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.GKE_SA_KEY }}'
- uses: google-github-actions/setup-gcloud@v1
with:
project_id: ${{ secrets.GKE_RPOJECT_ID }}
- name: Kubeconfig
run: |
gcloud components install gke-gcloud-auth-plugin
gcloud container clusters get-credentials ${{ secrets.GKE_CLUSTER_NAME_DEMO }} \
--region ${{ secrets.GKE_CLUSTER_REGION }} \
--project ${{ secrets.GKE_PROJECT_ID }}
- name: Helm Upgrade
run: |
helm upgrade --install ${COMPONENT} ${COMPONENT}-0.0.0.tgz \
--values helm/bot-telegram/values-gke-cluster-0.yaml \
--set podAnnotations.commit=$(git rev-parse --short HEAD),api.telegram.support.chat.id=${{ secrets.TG_BOT_SUPPORT_CHAT_ID }},api.telegram.webhook.token=${{ secrets.API_TELEGRAM_WEBHOOK_TOKEN }},chats.db.password.secret.enabled=false,chats.db.protocol=mongodb+srv,chats.db.tls.enabled=true,chats.db.tls.insecure=true,chats.db.hostname=${{ secrets.DB_HOST_DEMO }},chats.db.username=${{ secrets.DB_USERNAME_DEMO }},chats.db.password.raw=${{ secrets.DB_PASSWORD_DEMO }}