From f4fd7470069c16d24aada546034a86ece976e0bd Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Wed, 24 Apr 2024 09:48:41 -0700 Subject: [PATCH] Build and push image in the same step (#1664) Push image in the same step Signed-off-by: Kevin Su --- .github/workflows/checks.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index acd4f50fb..bb6fb90ff 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -107,11 +107,7 @@ jobs: tag2=ghcr.io/flyteorg/flytecookbook:latest docker build -t tag1 -t tag2 . fi - - name: Push default image - working-directory: examples/${{ matrix.example }} - if: ${{ github.event_name != 'pull_request' }} - run: | - if [ -f Dockerfile ]; then + if ${{ github.event_name != 'pull_request' }}; then docker push ghcr.io/flyteorg/flytecookbook --all-tags fi - name: Pyflyte package