Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
qwe7002 authored and qwe7002 committed Jun 1, 2022
2 parents 4cbbe2c + 490441d commit 0a62fdf
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .reall_network/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ cache:
variables:
OWNER: telegram-sms
REPO: telegram-rc
KEYSTORE_SERVER: keystore.git.reallct.uk

release:master:
dependencies:
Expand All @@ -19,9 +18,7 @@ release:master:
- master
script:
- apk --update --no-cache add git openssl bash curl wget go
- go get -u -v github.com/tcnksm/ghr
- curl https://${KEYSTORE_SERVER}/gitlab-sshkey/github-key.env -o .reall_network/github-key.env -u gitlab:${key_store_passwd}
- . .reall_network/github-key.env
- go install github.com/tcnksm/ghr@latest
- git push --set-upstream https://${GITHUB_ACCESS_KEY}@github.com/${OWNER}/${REPO}.git HEAD:refs/heads/${CI_COMMIT_REF_NAME}
- /root/go/bin/ghr -t "${GITHUB_ACCESS_KEY}" -u "${OWNER}" -r "${REPO}" "${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}-$(date "+%Y%m%d%H%M")" "./app/build/outputs/apk/release/app-release.apk"

Expand All @@ -33,22 +30,18 @@ release:nightly:
- nightly
script:
- apk --update --no-cache add git openssl bash curl wget go
- go get -u -v github.com/tcnksm/ghr
- curl https://${KEYSTORE_SERVER}/gitlab-sshkey/github-key.env -o .reall_network/github-key.env -u gitlab:${key_store_passwd}
- . .reall_network/github-key.env
- go install github.com/tcnksm/ghr@latest
- git push --set-upstream https://${GITHUB_ACCESS_KEY}@github.com/${OWNER}/${REPO}.git HEAD:refs/heads/${CI_COMMIT_REF_NAME}
- /root/go/bin/ghr -t "${GITHUB_ACCESS_KEY}" -u "${OWNER}" -r "${REPO}" -c ${CI_COMMIT_REF_NAME} --prerelease "${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}-$(date "+%Y%m%d%H%M")" "./app/build/outputs/apk/release/app-release.apk"

build:
image: alvrme/alpine-android:android-31-jdk11
stage: build
script:
- echo -n ${KEYSTORE} | base64 -d > app/keys.jks
- git submodule update --init --recursive
- export VERSION_CODE=${CI_PIPELINE_ID}
- export VERSION_NAME=${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}
- wget https://${KEYSTORE_SERVER}/android/telegram-sms/keys.jks -O app/keys.jks --http-user=gitlab --http-passwd=${key_store_passwd}
- wget https://${KEYSTORE_SERVER}/android/telegram-sms/keystore.env -O .reall_network/keystore.env --http-user=gitlab --http-passwd=${key_store_passwd}
- . .reall_network/keystore.env
- export GRADLE_USER_HOME=$(pwd)/.gradle && mkdir -p ${GRADLE_USER_HOME}
- echo -e "org.gradle.jvmargs=-Xmx1536m\n org.gradle.parallel=true" >> ${GRADLE_USER_HOME}/gradle.properties
- chmod +x ./gradlew
Expand Down

0 comments on commit 0a62fdf

Please sign in to comment.