From f86c6d64060df1ec04e207d426ee26ac30bff4c3 Mon Sep 17 00:00:00 2001 From: ShahanaFarooqui Date: Mon, 13 Jan 2025 13:28:10 -0800 Subject: [PATCH] github: Checkout action triggering branch To ensure the workflow uses updated files, including the Dockerfile, from the same branch for testing. --- .github/workflows/docker-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index 9d696256ac4c..635c3979a933 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -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 }}