Backup/restore the git configuration in the build-ui step.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This is to ensure that following steps that depend on the default username and email (e.g. the AUR release step) won't fail because of mismatching identities.
This commit is contained in:
parent
39fb3026bf
commit
8b245a1618
|
@ -135,6 +135,8 @@ steps:
|
|||
- chmod 0600 ~/.ssh/id_rsa
|
||||
- ssh-keyscan git.platypush.tech >> ~/.ssh/known_hosts 2>/dev/null
|
||||
|
||||
# Backup the original git configuration before changing name and email
|
||||
- cp .git/config /tmp/git.config.orig
|
||||
- git config user.name "Platypush CI/CD Automation"
|
||||
- git config user.email "admin@platypush.tech"
|
||||
- git config commit.gpgsign true
|
||||
|
@ -145,6 +147,9 @@ steps:
|
|||
- git remote add origin git@git.platypush.tech:platypush/platypush.git
|
||||
- git push origin master
|
||||
|
||||
# Restore the original git configuration
|
||||
- mv /tmp/git.config.orig .git/config
|
||||
|
||||
- name: update-arch-packages
|
||||
image: python:3.11-alpine
|
||||
environment:
|
||||
|
|
Loading…
Reference in New Issue