github: Checkout action triggering branch

To ensure the workflow uses updated files, including the Dockerfile, from the same branch for testing.
This commit is contained in:
ShahanaFarooqui 2025-01-13 13:28:10 -08:00
parent 0129aecda8
commit 2f64283945

View File

@ -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
@ -110,6 +112,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
platforms: ${{ env.PLATFORMS }}
tags: ${{ env.TAGS }}