Change YaCloud credentials

This commit is contained in:
Artyom Belousov 2023-08-11 23:14:36 +03:00
parent 301a5ce5ab
commit bd149a64a7
2 changed files with 16 additions and 16 deletions

View file

@ -19,7 +19,7 @@ jobs:
- name: Build, tag, and push image to Yandex Cloud Container Registry - name: Build, tag, and push image to Yandex Cloud Container Registry
env: env:
CR_REGISTRY: crp1s2dst54hvi8588to CR_REGISTRY: crp7gp50nf1pitkpk3hq
CR_REPOSITORY: mtg-price-bot CR_REPOSITORY: mtg-price-bot
IMAGE_TAG: ${{ github.sha }} IMAGE_TAG: ${{ github.sha }}
run: | run: |
@ -32,22 +32,22 @@ jobs:
with: with:
yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }} yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}
container-name: mtg-price-bot container-name: mtg-price-bot
folder-id: b1gcl15ep29573s3s3b0 folder-id: b1g97q1g0epou1o6bu24
revision-service-account-id: ajet8gg42gudglvakl8e revision-service-account-id: ajeomjp59v0jb9uiiq3k
revision-cores: 1 revision-cores: 1
revision-memory: 128Mb revision-memory: 128Mb
revision-core-fraction: 100 revision-core-fraction: 100
revision-concurrency: 1 revision-concurrency: 1
revision-image-url: cr.yandex/crp1s2dst54hvi8588to/mtg-price-bot:${{ github.sha }} revision-image-url: cr.yandex/crp7gp50nf1pitkpk3hq/mtg-price-bot:${{ github.sha }}
revision-execution-timeout: 10 revision-execution-timeout: 10
revision-env: | revision-env: |
YDB_CONNECTION_STRING=grpcs://ydb.serverless.yandexcloud.net:2135/ru-central1/b1gt05asi0tqmjs5pfv4/etn2d3t1h65d06qt14nn YDB_CONNECTION_STRING=grpcs://ydb.serverless.yandexcloud.net:2135/ru-central1/b1gofbt3bqdgf7fash84/etnp6sprstj3c6k8n34s
revision-secrets: | revision-secrets: |
TG_TOKEN=e6qifetf07j8uiol8mg8/e6qe5k71la41vhgef0dc/TG_TOKEN TG_TOKEN=e6qb3muh98m0as2r1r4b/e6q6lnhd66itrki6ao0s/TG_TOKEN
VK_SECRET_KEY=e6qifetf07j8uiol8mg8/e6qe5k71la41vhgef0dc/VK_SECRET_KEY VK_SECRET_KEY=e6qb3muh98m0as2r1r4b/e6q6lnhd66itrki6ao0s/VK_SECRET_KEY
VK_GROUP_ID=e6qifetf07j8uiol8mg8/e6qe5k71la41vhgef0dc/VK_GROUP_ID VK_GROUP_ID=e6qb3muh98m0as2r1r4b/e6q6lnhd66itrki6ao0s/VK_GROUP_ID
VK_TOKEN=e6qifetf07j8uiol8mg8/e6qe5k71la41vhgef0dc/VK_TOKEN VK_TOKEN=e6qb3muh98m0as2r1r4b/e6q6lnhd66itrki6ao0s/VK_TOKEN
VK_CONFIRMATION_STRING=e6qifetf07j8uiol8mg8/e6qe5k71la41vhgef0dc/VK_CONFIRMATION_STRING VK_CONFIRMATION_STRING=e6qb3muh98m0as2r1r4b/e6q6lnhd66itrki6ao0s/VK_CONFIRMATION_STRING
- name: Deploy API Gateway - name: Deploy API Gateway
id: deploy-gateway id: deploy-gateway
@ -55,5 +55,5 @@ jobs:
with: with:
yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }} yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}
gateway-name: mtg-price-bot gateway-name: mtg-price-bot
folder-id: b1gcl15ep29573s3s3b0 folder-id: b1g97q1g0epou1o6bu24
spec-file: apigw.yaml spec-file: apigw.yaml

View file

@ -3,17 +3,17 @@ info:
title: MTG Price Bot title: MTG Price Bot
version: 1.0.0 version: 1.0.0
servers: servers:
- url: https://d5d4b4ik3cqciso6et77.apigw.yandexcloud.net - url: https://d5dv3vf1vap43u1ntal1.apigw.yandexcloud.net
paths: paths:
/vk: /vk:
post: post:
x-yc-apigateway-integration: x-yc-apigateway-integration:
type: serverless_containers type: serverless_containers
container_id: bbadgr0nalljvl22uso7 container_id: bbas46c2ost7vshid40k
service_account_id: ajet8gg42gudglvakl8e service_account_id: ajeomjp59v0jb9uiiq3k
/tg: /tg:
post: post:
x-yc-apigateway-integration: x-yc-apigateway-integration:
type: serverless_containers type: serverless_containers
container_id: bbadgr0nalljvl22uso7 container_id: bbas46c2ost7vshid40k
service_account_id: ajet8gg42gudglvakl8e service_account_id: ajeomjp59v0jb9uiiq3k