From 43d7d8f740d2786b76e2f562fa486bd856feaa24 Mon Sep 17 00:00:00 2001 From: nezort11 Date: Sat, 4 Jan 2025 16:47:50 +0300 Subject: [PATCH] chore(cicd): Debug image build and deploy action --- .github/workflows/main.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dfef745..200eda8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,15 +16,11 @@ jobs: 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 - # env: - # CR_REGISTRY: ${{ vars.REGISTRY_ID }} - # CR_REPOSITORY: ${{ vars.CONTAINER_NAME }} - # IMAGE_TAG: ${{ github.sha }} run: | - echo "REGISTRY_ID: '${{ vars.REGISTRY_ID }}'" - echo "CONTAINER_NAME: '${{ vars.CONTAINER_NAME }}'" - IMAGE_NAME="cr.yandex/${{ vars.REGISTRY_ID }}/${{ vars.CONTAINER_NAME }}:${{ github.sha }}" docker build -t $IMAGE_NAME . docker push $IMAGE_NAME