fix tag name
This commit is contained in:
5
.github/workflows/build.yaml
vendored
5
.github/workflows/build.yaml
vendored
@@ -18,6 +18,7 @@ jobs:
|
||||
CR_REGISTRY: crp8vh46gd976oq8ipla
|
||||
CR_REPO: ${{ github.event.repository.name }}
|
||||
IMAGE_TAG: ${{ github.sha }}
|
||||
INPUT_TAG: ${{ inputs.tag }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
@@ -47,11 +48,11 @@ jobs:
|
||||
yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}
|
||||
- name: Tag image
|
||||
run: |
|
||||
docker tag cr.yandex/$CR_REGISTRY/$CR_REPO:${IMAGE_TAG::7} cr.yandex/$CR_REGISTRY/$CR_REPO:${{ inputs.tag }}
|
||||
docker tag cr.yandex/$CR_REGISTRY/$CR_REPO:${IMAGE_TAG::7} cr.yandex/$CR_REGISTRY/$CR_REPO:${INPUT_TAG/\//-}
|
||||
- name: Push image
|
||||
run: |
|
||||
docker push cr.yandex/$CR_REGISTRY/$CR_REPO:${IMAGE_TAG::7}
|
||||
docker push cr.yandex/$CR_REGISTRY/$CR_REPO:${{ inputs.tag }}
|
||||
docker push cr.yandex/$CR_REGISTRY/$CR_REPO:${INPUT_TAG/\//-}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user