mirror of
https://gitlab.com/fabinfra/fabaccess/borepin.git
synced 2025-03-12 14:51:44 +01:00
Update file .gitlab-ci.yml
This commit is contained in:
parent
7f6d90c294
commit
0a846482f0
@ -180,29 +180,39 @@ deploy_Android_Internal:
|
||||
after_script:
|
||||
- 'rm play-store-credentials.json'
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
needs:
|
||||
- pack_Android_APK
|
||||
- pack_iOS
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/
|
||||
tags:
|
||||
- docker
|
||||
image: registry.gitlab.com/fabinfra/gtk-sharp-build:latest
|
||||
variables:
|
||||
LC_ALL: 'en_US.UTF-8'
|
||||
LANG: 'en_US.UTF-8'
|
||||
upload_binaries:
|
||||
stage: deploy
|
||||
needs:
|
||||
- pack_Android_APK
|
||||
- pack_iOS
|
||||
tags:
|
||||
- docker
|
||||
image: curlimages/curl:latest
|
||||
before_script: []
|
||||
cache: []
|
||||
script:
|
||||
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file Borepin/Borepin.Android/bin/Release/org.fab_infra.fabaccess-Signed.apk "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/borepin/${CI_COMMIT_TAG}/org.fab_infra.fabaccess-Signed.apk"'
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/
|
||||
|
||||
before_script:
|
||||
- 'export VERSION_NUMBER=${CI_COMMIT_TAG:1}'
|
||||
- 'export BUILD_NUMBER="$CI_PIPELINE_ID"'
|
||||
script:
|
||||
- 'mkdir -p public'
|
||||
- 'cp Borepin/Borepin.Android/bin/Release/org.fab_infra.fabaccess-Signed.apk public/'
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
release_job:
|
||||
stage: deploy
|
||||
needs:
|
||||
- upload_binaries
|
||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/
|
||||
when: manual
|
||||
script:
|
||||
- echo "Creating GitLab release…"
|
||||
release:
|
||||
name: "Borepin ${CI_COMMIT_TAG}"
|
||||
description: "GitLab CI auto-created release"
|
||||
tag_name: "release/${CI_COMMIT_TAG}"
|
||||
assets:
|
||||
links:
|
||||
- name: 'Borepin signed apk'
|
||||
url: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/borepin/${CI_COMMIT_TAG}/org.fab_infra.fabaccess-Signed.apk"
|
||||
|
||||
deploy_Android_Beta:
|
||||
stage: deploy
|
||||
|
Loading…
x
Reference in New Issue
Block a user