Skip to content

Commit

Permalink
fix: remove image caption
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeryVerkhoturov committed Apr 1, 2024
1 parent c559bdd commit 665852e
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 665852e

Please sign in to comment.