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 e1c7955 commit 43d7d8f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 43d7d8f

Please sign in to comment.