From 816f56475ef9fe14c02399ffd250e0b51857c8d6 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 18 Apr 2026 18:02:50 +0200 Subject: [PATCH] changes in drone --- .drone.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5fa32d7..e663781 100644 --- a/.drone.yml +++ b/.drone.yml @@ -48,12 +48,13 @@ steps: # Repo clonen - git clone https://git.efi.th-nuernberg.de/gitea/weigmi87303/EinfuehrungInDocker_Pipeline2.git - cd EinfuehrungInDocker_Pipeline2 + - git remote set-url origin https://weigmi87303:$GITEA_TOKEN@git.efi.th-nuernberg.de/gitea/weigmi87303/EinfuehrungInDocker_Pipeline2.git # Branch wechseln oder erstellen - git checkout drone-artifacts || git checkout -b drone-artifacts # Artifact löschen und neu hinzufügen - - git rm image.tar + - git rm -f image.tar || true - cp $DRONE_WORKSPACE/image.tar . - git add image.tar @@ -61,7 +62,7 @@ steps: - git commit -m "Add built Docker image [skip ci]" || echo "Nothing to commit" # Pull vor Push (um Konflikte zu vermeiden) - - git pull || true + - git pull origin drone-artifacts || true # Push - - git push \ No newline at end of file + - git push -u origin drone-artifacts