diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7b64415..ad4b98c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -6,7 +6,7 @@ jobs: env: #DOCKER_HOST: tcp://${{ matrix.config.host }}:2376 CR_REGISTRY: crp8vh46gd976oq8ipla - CR_REPO: ${{ github.repository }} + CR_REPO: ${{ github.repository.name }} IMAGE_TAG: ${{ github.sha }} steps: - name: Checkout @@ -17,15 +17,15 @@ jobs: ssh-private-key: ${{ secrets.LIB_SSH_KEY }} - name: Build image run: | - docker build -t cr.yandex/$CR_REGISTRY/${CR_REPO:4}:${IMAGE_TAG::7} --ssh default . + docker build -t cr.yandex/$CR_REGISTRY/$CR_REPO:${IMAGE_TAG::7} --ssh default . - name: Yandex Cloud Login uses: yc-actions/yc-cr-login@v2 with: yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }} - name: Tag image run: | - docker tag cr.yandex/$CR_REGISTRY/${CR_REPO:4}:${IMAGE_TAG::7} cr.yandex/$CR_REGISTRY/${CR_REPO:4}:latest + docker tag cr.yandex/$CR_REGISTRY/$CR_REPO:${IMAGE_TAG::7} cr.yandex/$CR_REGISTRY/$CR_REPO:latest - name: Push image run: | - docker push cr.yandex/$CR_REGISTRY/${CR_REPO:4}:${IMAGE_TAG::7} - docker push cr.yandex/$CR_REGISTRY/${CR_REPO:4}:latest \ No newline at end of file + docker push cr.yandex/$CR_REGISTRY/$CR_REPO:${IMAGE_TAG::7} + docker push cr.yandex/$CR_REGISTRY/$CR_REPO:latest \ No newline at end of file