Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • wip
  • ChenZhangg-Modify_GRADLE_1
  • jetpack-compose-rewrite
  • demo-jump-in-history
  • attachments
  • 1.7.0 protected
  • 1.6.2 protected
  • 1.6.1 protected
  • 1.6.0 protected
  • 1.5.3 protected
  • 1.5.2 protected
  • 1.5.1 protected
  • 1.5.0 protected
  • 1.4.4 protected
  • 1.4.3 protected
  • 1.4.2 protected
  • 1.4.1 protected
  • 1.4.0 protected
  • v1.3.3 protected
  • v1.3.2 protected
  • v1.3.1 protected
  • v1.3.0 protected
  • v1.2.28 protected
  • v1.2.27 protected
  • v1.2.26 protected
26 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 1.68 KiB
    image: "k8r.eu/justjanne/android-sdk:27-27.0.3-26.1.1"
    
    variables:
      GRADLE_OPTS: "-Dorg.gradle.daemon=false"
    
    cache:
      key: "$CI_PROJECT_NAME"
      paths:
        - ".gradle/wrapper"
        - ".gradle/caches"
    
    before_script:
      - "export GRADLE_USER_HOME=$(pwd)/.gradle"
      - "export ANDROID_HOME=/android-sdk-linux"
      - "export PATH=$PATH:/android-sdk-linux/platform-tools/"
      - "chmod +x ./gradlew"
    
      - "echo $SIGNING_KEYSTORE | base64 -d > /root/signing.keystore"
      - "echo $SIGNING_PROPERTIES | base64 -d > signing.properties"
    
    stages:
      - "build"
    #  - "test"
      - "deploy-local"
      - "deploy-beta"
    
    build:
      stage: "build"
      script:
        - "./gradlew assembleRelease -x lintRelease -x lintVitalRelease"
        - "cp app/build/outputs/apk/release/*.apk ."
      artifacts:
        paths:
          - "*.apk"
    
    #test:
    #  stage: "test"
    #  script:
    #    - "./gradlew check"
    
    deploy-local:
      stage: "deploy-local"
      image: "k8r.eu/justjanne/docker-s3cmd:latest"
      cache: {}
      only:
        refs:
        - "master"
        variables:
        - "$S3_CONFIG"
      dependencies:
      - "build"
      script:
      - "echo $S3_CONFIG | base64 -d > $HOME/.s3cfg"
      - "export VERSION=$(ls *.apk)"
      - "s3cmd put $VERSION s3://releases/quasseldroid-ng/$VERSION"
      - "s3cmd cp s3://releases/quasseldroid-ng/$VERSION s3://releases/quasseldroid-ng/Quasseldroid-latest.apk"
    
    deploy-beta:
      stage: "deploy-beta"
      image: "k8r.eu/justjanne/docker-fastlane:latest"
      cache: {}
      only:
        refs:
        - "master"
        variables:
        - "$FASTLANE_CONFIG"
      dependencies:
      - "build"
      script:
      - "echo $FASTLANE_CONFIG | base64 -d > $HOME/key.json"