diff --git a/.github/workflows/docker-build-and-push.yaml b/.github/workflows/docker-build-and-push.yaml index 279ac1f..b66167f 100644 --- a/.github/workflows/docker-build-and-push.yaml +++ b/.github/workflows/docker-build-and-push.yaml @@ -24,9 +24,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v5 - with: - github-server-url: https://chef.heaplab.deib.polimi.it/git + run: | + git clone --depth 1 --branch ${GITHUB_REF_NAME} \ + https://chef.heaplab.deib.polimi.it/git/${GITHUB_REPOSITORY}.git \ + ${GITHUB_WORKSPACE} - name: Build Docker image run: |