Skip to content

Commit

Permalink
chore(cicd): Debug image build and deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
nezort11 committed Jan 4, 2025
1 parent 2d33eee commit d4901bb
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
env:
IMAGE_NAME: cr.yandex/${{ vars.REGISTRY_ID }}/${{ vars.CONTAINER_NAME }}:${{ github.sha }}

steps:
- name: Login to Yandex Cloud Container Registry
Expand All @@ -21,7 +23,6 @@ jobs:

- 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
Expand All @@ -30,12 +31,12 @@ jobs:
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-service-account-id: ${{ vars.SERVICE_ACCOUNT_ID }}
revision-image-url: $IMAGE_NAME
container-name: ${{ vars.CONTAINER_NAME }}
folder-id: ${{ vars.FOLDER_ID }}
revision-cores: 1
revision-memory: 512Mb
revision-memory: 2048Mb
revision-core-fraction: 100
revision-concurrency: 8
revision-execution-timeout: 10
revision-concurrency: 2
revision-execution-timeout: 60

0 comments on commit d4901bb

Please sign in to comment.