diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 9402ddc..bdb6422 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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/\//-}