Fix steps in nightly build

This commit is contained in:
Balazs Toldi 2023-08-13 22:04:25 +02:00
parent 891215fcb3
commit e2f36c334b
No known key found for this signature in database
GPG Key ID: 6C7D440036F99D58

View File

@ -35,35 +35,34 @@ steps:
- git reset --soft HEAD~1 - git reset --soft HEAD~1
- git status - git status
update-fdroid-data: update-fdroid-data:
image: codeberg.org/freeyourgadget/android-fdroid-tools:latest image: codeberg.org/freeyourgadget/android-fdroid-tools:latest
commands: commands:
- pwd - pwd
- cd ../repoconfig/fdroid-repo-config/ - cd ../repoconfig/fdroid-repo-config/
# get secrets from storage # get secrets from storage
- cp - cp
- fdroid update - fdroid update
- fdroid deploy - fdroid deploy
- ls -laR repo - ls -laR repo
secrets: [ signing_key, keystorepass, keypass ]
push-pages-update-repo: push-pages-update-repo:
image: codeberg.org/freeyourgadget/android-fdroid-tools:latest image: codeberg.org/freeyourgadget/android-fdroid-tools:latest
commands: commands:
- if [ -f .do_not_build ]; then return 0; fi - if [ -f .do_not_build ]; then return 0; fi
- cd ../pages/pages/ - cd ../pages/pages/
- git add -A - git add -A
- git status - git status
- git diff - git diff
- ls -lsR fdroid/repo - ls -lsR fdroid/repo
- git commit -m "autodeploy" - git commit -m "autodeploy"
- git remote remove origin - git remote remove origin
- git remote add origin https://"$${GITEA_ACCESS_TOKEN}"@codeberg.org/Freeyourgadget/pages.git - git remote add origin https://"$${GITEA_ACCESS_TOKEN}"@codeberg.org/Freeyourgadget/pages.git
# force push as we removed all data # force push as we removed all data
- git push -f origin master - git push -f origin master
- cd ../../ - cd ../../
- pwd - pwd
- ls -la - ls -la
secrets: [ GITEA_ACCESS_TOKEN ] secrets: [ GITEA_ACCESS_TOKEN ]
when: when:
event: cron event: cron