This commit is contained in:
parent
f9d668d8db
commit
c14b87eab9
14
.drone.yml
14
.drone.yml
@ -42,22 +42,22 @@ steps:
|
||||
- git config --global user.email "drone@ci.local"
|
||||
- git config --global user.name "Drone CI"
|
||||
|
||||
# Remote setzen: Jetzt aktiv und MIT dem nötigen Token für die Anmeldung!
|
||||
- git remote set-url origin https://$${GITEA_TOKEN}@git.efi.th-nuernberg.de/gitea/freudenreichan/EinfuehrungInDocker_Pipeline2.git
|
||||
# HIER WURDE DER NAME AUF DEINEN BENUTZERNAME GEÄNDERT:
|
||||
- git remote set-url origin https://$${GITEA_TOKEN}@git.efi.th-nuernberg.de/gitea/nowakke9218/EinfuehrungInDocker_Pipeline2.git
|
||||
|
||||
# Das fertige Image kurz zwischenspeichern, damit Git es beim Branch-Wechsel nicht löscht
|
||||
# Das fertige Image kurz zwischenspeichern
|
||||
- cp image.tar /tmp/image.tar
|
||||
|
||||
# Informationen vom Server holen und in den richtigen Branch wechseln
|
||||
# Informationen holen und in den Branch wechseln
|
||||
- git fetch origin
|
||||
- git checkout drone-artifacts || git checkout -b drone-artifacts
|
||||
|
||||
# Das Image aus dem Zwischenspeicher zurückholen
|
||||
# Das Image zurückholen
|
||||
- cp /tmp/image.tar ./image.tar
|
||||
|
||||
# Datei für Git bereitstellen und commiten
|
||||
# Datei committen
|
||||
- git add image.tar
|
||||
- git commit -m "Add built Docker image [skip ci]" || echo "Nothing to commit"
|
||||
|
||||
# Sicher und direkt in dein Repository pushen
|
||||
# Push in DEIN Repository
|
||||
- git push origin drone-artifacts
|
||||
Loading…
x
Reference in New Issue
Block a user