Prevent commit if nothing changed
continuous-integration/drone Build is failing

This commit is contained in:
2023-08-17 23:39:39 +02:00
parent 794a08c9b0
commit 5ff47de10a
+1 -1
View File
@@ -135,7 +135,7 @@ steps:
- chmod 600 $HOME/.ssh/known_hosts
- ssh-keyscan -H git.2martens.de > $HOME/.ssh/known_hosts 2>/dev/null
- git add ansible/inventories/host_vars/api-server/public.yaml
- git commit -m "[Drone] Changed wahlrecht_image_version to ${DRONE_SEMVER}"
- git diff-index --quiet HEAD || git commit -m "[Drone] Changed wahlrecht_image_version to ${DRONE_SEMVER}"
- git push origin main
- name: deploy image
image: plugins/ansible:latest