From 0934df0a538f2faf96e0846ff69dac47a267aacb Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Wed, 5 Jun 2024 16:26:11 +0300 Subject: [PATCH] Improve CD workflow --- .github/workflows/docker-push.yml | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/.github/workflows/docker-push.yml b/.github/workflows/docker-push.yml index 80731b1..ea763e3 100644 --- a/.github/workflows/docker-push.yml +++ b/.github/workflows/docker-push.yml @@ -157,29 +157,7 @@ jobs: exit 0 fi - - name: Build and push images (DockerHub) - if: ${{ steps.build_check.outputs.build == 'true' }} - uses: docker/build-push-action@v5 - with: - push: true - context: . - file: ${{steps.metadata.outputs.dockerfile}} - build-args: | - REGISTRY=docker.io - tags: ${{steps.metadata.outputs.dh_tags}} - - - name: Build and push images (GHCR) - if: ${{ steps.build_check.outputs.build == 'true' }} - uses: docker/build-push-action@v5 - with: - push: true - context: . - file: ${{steps.metadata.outputs.dockerfile}} - build-args: | - REGISTRY=ghcr.io - tags: ${{steps.metadata.outputs.gh_tags}} - - - name: Build and push images (YCCR) + - name: Build and push image if: ${{ steps.build_check.outputs.build == 'true' }} uses: docker/build-push-action@v5 with: @@ -188,7 +166,10 @@ jobs: file: ${{steps.metadata.outputs.dockerfile}} build-args: | REGISTRY=ghcr.io - tags: ${{steps.metadata.outputs.yc_tags}} + tags: | + ${{ steps.metadata.outputs.dh_tags }} + ${{ steps.metadata.outputs.gh_tags }} + ${{ steps.metadata.outputs.yc_tags }} - name: Show info about built image if: ${{ steps.build_check.outputs.build == 'true' }}