fix: respect selected branch when cloning the files

This commit is contained in:
2026-06-13 09:35:38 +02:00
parent 5d911628d2
commit 1ced8a9ffe
2 changed files with 2 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ jobs:
shell: sh
run: |
set -euo pipefail
git clone --depth 1 https://${{ secrets.REPOSITORY_USER }}:${{ secrets.REPOSITORY_TOKEN }}@git.nas-technologies.com/lbatuska/drogon_docker.git
git clone -b ${{ gitea.ref_name }} --depth 1 https://${{ secrets.REPOSITORY_USER }}:${{ secrets.REPOSITORY_TOKEN }}@git.nas-technologies.com/lbatuska/drogon_docker.git
- name: Login to registry
shell: sh
run: |

View File

@@ -10,7 +10,7 @@ jobs:
shell: sh
run: |
set -euo pipefail
git clone --depth 1 https://${{ secrets.REPOSITORY_USER }}:${{ secrets.REPOSITORY_TOKEN }}@git.nas-technologies.com/lbatuska/drogon_docker.git
git clone -b ${{ gitea.ref_name }} --depth 1 https://${{ secrets.REPOSITORY_USER }}:${{ secrets.REPOSITORY_TOKEN }}@git.nas-technologies.com/lbatuska/drogon_docker.git
- name: Login to registry
shell: sh
run: |
@@ -22,7 +22,6 @@ jobs:
run: |
cd drogon_docker
IMAGE="git.nas-technologies.com/lbatuska/drogon"
docker build -f Dockerfile.drogon\
--build-arg DROGON_TAG="${{ gitea.ref_name }}" \
-t "$IMAGE:${{ gitea.ref_name }}" \