Update file .gitlab-ci.yml

This commit is contained in:
Kai Kriegel 2023-01-26 00:52:40 +00:00
parent 07d71c8b6b
commit ba5880e820

View File

@ -1,5 +1,5 @@
variables: variables:
VERSION_PATTERN: '/v\d+\.\d+(\.\d+)?/' VERSION_PATTERN: '/^v\d+\.\d+(\.\d+)?$/'
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
LIB_RELEASE_FOLDER: 'Borepin\Borepin\bin\Release' LIB_RELEASE_FOLDER: 'Borepin\Borepin\bin\Release'
UWP_RELEASE_FOLDER: 'Borepin\Borepin.UWP\bin\x86\Release' UWP_RELEASE_FOLDER: 'Borepin\Borepin.UWP\bin\x86\Release'
@ -87,7 +87,7 @@ pack_Android_AAB:
needs: needs:
- build_Android - build_Android
rules: rules:
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/ - if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
tags: tags:
- fabinfra - fabinfra
- internal - internal
@ -112,7 +112,7 @@ pack_Android_APK:
needs: needs:
- build_Android - build_Android
rules: rules:
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/ - if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
tags: tags:
- fabinfra - fabinfra
- internal - internal
@ -138,7 +138,7 @@ pack_FDroid_APK:
needs: needs:
- build_Android - build_Android
rules: rules:
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/ - if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
tags: tags:
- fabinfra - fabinfra
- internal - internal
@ -164,7 +164,7 @@ pack_iOS:
needs: needs:
- build_iOS - build_iOS
rules: rules:
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/ - if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
tags: tags:
- fabinfra - fabinfra
- internal - internal
@ -188,7 +188,7 @@ deploy_Android_Internal:
needs: needs:
- pack_Android_AAB - pack_Android_AAB
rules: rules:
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/ - if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
tags: tags:
- docker - docker
image: registry.gitlab.com/fabinfra/gtk-sharp-build:latest image: registry.gitlab.com/fabinfra/gtk-sharp-build:latest
@ -211,10 +211,11 @@ pages:
needs: needs:
- pack_FDroid_APK - pack_FDroid_APK
rules: rules:
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/ - if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
tags: tags:
- docker - docker
image: registry.gitlab.com/fdroid/docker-executable-fdroidserver:latest image: registry.gitlab.com/fdroid/docker-executable-fdroidserver:latest
entrypoint: [""]
variables: variables:
LC_ALL: 'en_US.UTF-8' LC_ALL: 'en_US.UTF-8'
LANG: 'en_US.UTF-8' LANG: 'en_US.UTF-8'
@ -249,7 +250,7 @@ upload_binaries:
script: 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"' - '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: rules:
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/ - if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
release_job: release_job:
stage: deploy stage: deploy
@ -259,7 +260,9 @@ release_job:
tags: tags:
- docker - docker
rules: rules:
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/ - if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
- if: $CI_COMMIT_TAG =~ "release/.*"
when: never
when: manual when: manual
script: script:
- echo "Creating GitLab release…" - echo "Creating GitLab release…"
@ -277,7 +280,7 @@ deploy_Android_Beta:
needs: needs:
- deploy_Android_Internal - deploy_Android_Internal
rules: rules:
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/ - if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
when: manual when: manual
tags: tags:
- docker - docker
@ -300,7 +303,7 @@ deploy_Android_Production:
needs: needs:
- deploy_Android_Beta - deploy_Android_Beta
rules: rules:
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/ - if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
when: manual when: manual
tags: tags:
- docker - docker
@ -323,7 +326,7 @@ deploy_iOS_Internal:
needs: needs:
- pack_iOS - pack_iOS
rules: rules:
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/ - if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
tags: tags:
- fabinfra - fabinfra
- internal - internal
@ -350,7 +353,7 @@ deploy_iOS_Beta:
needs: needs:
- pack_iOS - pack_iOS
rules: rules:
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/ - if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
when: manual when: manual
tags: tags:
- fabinfra - fabinfra
@ -378,7 +381,7 @@ deploy_iOS_Production:
needs: needs:
- deploy_iOS_Beta - deploy_iOS_Beta
rules: rules:
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/ - if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
when: manual when: manual
tags: tags:
- fabinfra - fabinfra