From 665852eab9de19ea4ac4ac95f707e057ec03de42 Mon Sep 17 00:00:00 2001 From: Valery Verkhoturov Date: Mon, 1 Apr 2024 21:06:17 +0300 Subject: [PATCH] fix: remove image caption --- .github/workflows/deploy.yml | 52 ++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 20d914b..f828e02 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -46,32 +46,32 @@ jobs: cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_IMAGE_FRONTEND }}:latest docker push cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_IMAGE_FRONTEND }}:latest - build-image-caption: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Login to Registry - uses: yc-actions/yc-cr-login@v1 - with: - yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }} - - name: Build and Push Image of Image Caption - run: | - cd image-caption - docker build \ - --pull \ - --cache-from cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_IMAGE_IMAGE_CAPTION }}:latest \ - --label "org.image.title=${{ github.repository }}" \ - --label "org.image.url=${{ github.repositoryUrl }}" \ - --label "org.image.created=${{ env.JOB_STARTED_AT }}" \ - --label "org.image.revision=${{ github.ref_name }}" \ - --label "org.image.version=${{ github.sha }}" \ - --tag cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_IMAGE_IMAGE_CAPTION }}:${{ github.sha }} \ - . - docker push cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_IMAGE_IMAGE_CAPTION }}:${{ github.sha }} - docker tag cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_IMAGE_IMAGE_CAPTION }}:${{ github.sha }} \ - cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_IMAGE_IMAGE_CAPTION }}:latest - docker push cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_IMAGE_IMAGE_CAPTION }}:latest + # build-image-caption: + # runs-on: ubuntu-latest + # steps: + # - name: Checkout + # uses: actions/checkout@v3 + # - name: Login to Registry + # uses: yc-actions/yc-cr-login@v1 + # with: + # yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }} + # - name: Build and Push Image of Image Caption + # run: | + # cd image-caption + # docker build \ + # --pull \ + # --cache-from cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_IMAGE_IMAGE_CAPTION }}:latest \ + # --label "org.image.title=${{ github.repository }}" \ + # --label "org.image.url=${{ github.repositoryUrl }}" \ + # --label "org.image.created=${{ env.JOB_STARTED_AT }}" \ + # --label "org.image.revision=${{ github.ref_name }}" \ + # --label "org.image.version=${{ github.sha }}" \ + # --tag cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_IMAGE_IMAGE_CAPTION }}:${{ github.sha }} \ + # . + # docker push cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_IMAGE_IMAGE_CAPTION }}:${{ github.sha }} + # docker tag cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_IMAGE_IMAGE_CAPTION }}:${{ github.sha }} \ + # cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_IMAGE_IMAGE_CAPTION }}:latest + # docker push cr.yandex/${{ env.CR_REGISTRY }}/${{ env.CR_IMAGE_IMAGE_CAPTION }}:latest deploy: runs-on: self-hosted needs: [build, build-image-caption]