Skip to content

chore: Commit full package json with comments #8

chore: Commit full package json with comments

chore: Commit full package json with comments #8

Workflow file for this run

name: Build and Deploy to Yandex Cloud Serverless Containers
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Login to Yandex Cloud Container Registry
id: login-cr
uses: yc-actions/yc-cr-login@v1
with:
yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}
- name: Check out the code
uses: actions/checkout@v3
- name: Build, tag, and push image to Yandex Cloud Container Registry
run: |
IMAGE_NAME="cr.yandex/${{ vars.REGISTRY_ID }}/${{ vars.CONTAINER_NAME }}:${{ github.sha }}"
docker build -t $IMAGE_NAME .
docker push $IMAGE_NAME
- name: Deploy Serverless Container
id: deploy-sls-container
uses: yc-actions/yc-sls-container-deploy@v2
with:
yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}
revision-service-account-id: ajeqnasj95o7********
revision-image-url: cr.yandex/crp00000000000000000/my-cr-repo:${{ github.sha }}
container-name: yc-action-demo
folder-id: bbajn5q2d74c********
revision-cores: 1
revision-memory: 512Mb
revision-core-fraction: 100
revision-concurrency: 8
revision-execution-timeout: 10