Skip to content

Commit

Permalink
Build and push image in the same step (#1664)
Browse files Browse the repository at this point in the history
Push image in the same step

Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw authored Apr 24, 2024
1 parent 2a22871 commit f4fd747
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f4fd747

Please sign in to comment.