Skip to content

Commit

Permalink
github: Checkout action triggering branch
Browse files Browse the repository at this point in the history
To ensure the workflow uses updated files, including the Dockerfile, from the same branch for testing.
  • Loading branch information
ShahanaFarooqui committed Jan 13, 2025
1 parent 3330a8e commit bcb197f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref }} # Ensures the branch triggering the workflow is checked out

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down Expand Up @@ -110,6 +112,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
platforms: ${{ env.PLATFORMS }}
tags: ${{ env.TAGS }}

0 comments on commit bcb197f

Please sign in to comment.