Explorar el Código

Improve quoting in gitlab-ci.yml and add rule for schedules

Peter Kaplan hace 5 años
padre
commit
2779f9d015
Se han modificado 2 ficheros con 5 adiciones y 5 borrados
  1. 4 4
      .gitlab-ci.yml
  2. 1 1
      fdroid/config.yml

+ 4 - 4
.gitlab-ci.yml

@@ -4,10 +4,9 @@ pages:
   script:
     - ./download.py
     - cd fdroid
-    - echo $FDROID_KEYSTORE_BASE64 | base64 -d >keystore.p12
-    - "echo keystorepass: $FDROID_KEYSTOREPASS >>config.yml"
-    - "echo keypass: $FDROID_KEYSTOREPASS >>config.yml"
-    - chmod 600 config.yml keystore.p12
+    - 'echo "$FDROID_KEYSTORE_BASE64" | base64 -d >keystore.p12'
+    - 'echo "keystorepass: $FDROID_KEYSTOREPASS" >>config.yml'
+    - 'echo "keypass: $FDROID_KEYSTOREPASS" >>config.yml'
     - fdroid update
     - rm -rf archive
     - mkdir /fdroid && fdroid deploy
@@ -22,3 +21,4 @@ pages:
       - fdroid/repo
   rules:
     - if: '$CI_COMMIT_BRANCH == "master"'
+    - if: '$CI_PIPELINE_SOURCE == "schedule"'

+ 1 - 1
fdroid/config.yml

@@ -2,7 +2,7 @@
 repo_name: Custom Repo
 description: This binary repo is automatically created with https://gitlab.com/pmkap/custom-repo.
 
-archive_older: 0
+archive_older: 3
 
 local_copy_dir: /fdroid