Fix creating release and upload artefacts in CI on final releases
Closes #1189 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
77415ed413
commit
5a30bc2f15
|
@ -246,7 +246,7 @@ build-docker-main:
|
||||||
# Don't push to latest when building beta/rc tags
|
# Don't push to latest when building beta/rc tags
|
||||||
build-and-push-to-latest-docker-tag:
|
build-and-push-to-latest-docker-tag:
|
||||||
<<: *docker
|
<<: *docker
|
||||||
rules: &tag-rules
|
rules: &release-tag-rules
|
||||||
- if: '$CI_PROJECT_NAMESPACE != "framasoft"'
|
- if: '$CI_PROJECT_NAMESPACE != "framasoft"'
|
||||||
when: never
|
when: never
|
||||||
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG !~ /alpha|beta|rc/
|
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG !~ /alpha|beta|rc/
|
||||||
|
@ -263,7 +263,7 @@ build-and-push-to-latest-docker-tag:
|
||||||
|
|
||||||
build-and-push-docker-tag:
|
build-and-push-docker-tag:
|
||||||
<<: *docker
|
<<: *docker
|
||||||
rules: &tag-rules
|
rules: &pre-release-tag-rules
|
||||||
- if: '$CI_PROJECT_NAMESPACE != "framasoft"'
|
- if: '$CI_PROJECT_NAMESPACE != "framasoft"'
|
||||||
when: never
|
when: never
|
||||||
- if: $CI_COMMIT_TAG =~ /alpha|beta|rc/
|
- if: $CI_COMMIT_TAG =~ /alpha|beta|rc/
|
||||||
|
@ -369,7 +369,9 @@ release-upload:
|
||||||
image: framasoft/upload-packages:latest
|
image: framasoft/upload-packages:latest
|
||||||
variables:
|
variables:
|
||||||
APP_ASSET: "${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_${ARCH}.tar.gz"
|
APP_ASSET: "${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_${ARCH}.tar.gz"
|
||||||
rules: *tag-rules
|
rules:
|
||||||
|
- if: '$CI_PROJECT_NAMESPACE != "framasoft"'
|
||||||
|
when: never
|
||||||
script:
|
script:
|
||||||
- eval `ssh-agent -s`
|
- eval `ssh-agent -s`
|
||||||
- ssh-add <(echo "${DEPLOYEMENT_KEY}" | base64 --decode -i)
|
- ssh-add <(echo "${DEPLOYEMENT_KEY}" | base64 --decode -i)
|
||||||
|
@ -387,7 +389,9 @@ release-upload:
|
||||||
release-create:
|
release-create:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||||
rules: *tag-rules
|
rules:
|
||||||
|
- if: '$CI_PROJECT_NAMESPACE != "framasoft"'
|
||||||
|
when: never
|
||||||
variables:
|
variables:
|
||||||
APP_ASSET_AMD64: "${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_amd64.tar.gz"
|
APP_ASSET_AMD64: "${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_amd64.tar.gz"
|
||||||
APP_ASSET_ARM: "${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_arm.tar.gz"
|
APP_ASSET_ARM: "${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_arm.tar.gz"
|
||||||
|
|
Loading…
Reference in a new issue