Skip to content

Commit

Permalink
Fix the GH workflow to push the docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik committed Jan 6, 2025
1 parent ad51a1c commit 1d51cd4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,23 @@ on:
push:
tags:
- 'v*' # This will match any tag that starts with 'v'

pull_request: # Add this to run on PRs
branches:
- main # Assuming your default branch is 'main'
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v5
with:
context: .
tags: ghcr.io/hasura/ndc-calcite:${{ github.ref_name }} # Use the tag name for the Docker image
tags: ghcr.io/hasura/ndc-calcite:${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || github.ref_name }}
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 1d51cd4

Please sign in to comment.