changes in drone
This commit is contained in:
parent
4cfce386df
commit
816f56475e
@ -48,12 +48,13 @@ steps:
|
|||||||
# Repo clonen
|
# Repo clonen
|
||||||
- git clone https://git.efi.th-nuernberg.de/gitea/weigmi87303/EinfuehrungInDocker_Pipeline2.git
|
- git clone https://git.efi.th-nuernberg.de/gitea/weigmi87303/EinfuehrungInDocker_Pipeline2.git
|
||||||
- cd EinfuehrungInDocker_Pipeline2
|
- 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
|
# Branch wechseln oder erstellen
|
||||||
- git checkout drone-artifacts || git checkout -b drone-artifacts
|
- git checkout drone-artifacts || git checkout -b drone-artifacts
|
||||||
|
|
||||||
# Artifact löschen und neu hinzufügen
|
# Artifact löschen und neu hinzufügen
|
||||||
- git rm image.tar
|
- git rm -f image.tar || true
|
||||||
- cp $DRONE_WORKSPACE/image.tar .
|
- cp $DRONE_WORKSPACE/image.tar .
|
||||||
- git add image.tar
|
- git add image.tar
|
||||||
|
|
||||||
@ -61,7 +62,7 @@ steps:
|
|||||||
- git commit -m "Add built Docker image [skip ci]" || echo "Nothing to commit"
|
- git commit -m "Add built Docker image [skip ci]" || echo "Nothing to commit"
|
||||||
|
|
||||||
# Pull vor Push (um Konflikte zu vermeiden)
|
# Pull vor Push (um Konflikte zu vermeiden)
|
||||||
- git pull || true
|
- git pull origin drone-artifacts || true
|
||||||
|
|
||||||
# Push
|
# Push
|
||||||
- git push
|
- git push -u origin drone-artifacts
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user