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 328dac8 commit 1958787
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ jobs:
yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}

- name: Build, tag, and push image to Yandex Cloud Container Registry
env:
CR_REGISTRY: ${{ env.REGISTRY_ID }}
CR_REPOSITORY: ${{ env.CONTAINER_NAME }}
IMAGE_TAG: ${{ github.sha }}
# env:
# CR_REGISTRY: ${{ env.REGISTRY_ID }}
# CR_REPOSITORY: ${{ env.CONTAINER_NAME }}
# IMAGE_TAG: ${{ github.sha }}
run: |
docker build -t cr.yandex/$CR_REGISTRY/$CR_REPOSITORY:$IMAGE_TAG .
docker push cr.yandex/$CR_REGISTRY/$CR_REPOSITORY:$IMAGE_TAG
IMAGE_NAME="cr.yandex/${{ env.REGISTRY_ID }}/${{ env.CONTAINER_NAME }}:${{ github.sha }}"
docker build -t $IMAGE_NAME .
docker push $IMAGE_NAME
- name: Deploy Serverless Container
id: deploy-sls-container
Expand Down

0 comments on commit 1958787

Please sign in to comment.