fix var hack
This commit is contained in:
10
.github/workflows/build.yaml
vendored
10
.github/workflows/build.yaml
vendored
@@ -6,7 +6,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
#DOCKER_HOST: tcp://${{ matrix.config.host }}:2376
|
#DOCKER_HOST: tcp://${{ matrix.config.host }}:2376
|
||||||
CR_REGISTRY: crp8vh46gd976oq8ipla
|
CR_REGISTRY: crp8vh46gd976oq8ipla
|
||||||
CR_REPO: ${{ github.repository }}
|
CR_REPO: ${{ github.repository.name }}
|
||||||
IMAGE_TAG: ${{ github.sha }}
|
IMAGE_TAG: ${{ github.sha }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -17,15 +17,15 @@ jobs:
|
|||||||
ssh-private-key: ${{ secrets.LIB_SSH_KEY }}
|
ssh-private-key: ${{ secrets.LIB_SSH_KEY }}
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: |
|
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
|
- name: Yandex Cloud Login
|
||||||
uses: yc-actions/yc-cr-login@v2
|
uses: yc-actions/yc-cr-login@v2
|
||||||
with:
|
with:
|
||||||
yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}
|
yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}
|
||||||
- name: Tag image
|
- name: Tag image
|
||||||
run: |
|
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
|
- name: Push image
|
||||||
run: |
|
run: |
|
||||||
docker push cr.yandex/$CR_REGISTRY/${CR_REPO:4}:${IMAGE_TAG::7}
|
docker push cr.yandex/$CR_REGISTRY/$CR_REPO:${IMAGE_TAG::7}
|
||||||
docker push cr.yandex/$CR_REGISTRY/${CR_REPO:4}:latest
|
docker push cr.yandex/$CR_REGISTRY/$CR_REPO:latest
|
||||||
Reference in New Issue
Block a user