-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "ci(gitlab): only release on a new tag created"
This reverts commit 5aedd9a.
- Loading branch information
Showing
1 changed file
with
13 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,6 +84,18 @@ clearndr: | |
- docker push ${CI_REGISTRY_IMAGE}/clearndr:${CI_COMMIT_SHORT_SHA} | ||
- docker push ${CI_REGISTRY_IMAGE}/clearndr:${CI_COMMIT_REF_NAME} | ||
|
||
release-to-github: | ||
stage: release | ||
image: bitnami/git | ||
rules: | ||
- if: '$CI_COMMIT_REF_NAME == "latest"' | ||
when: on_success | ||
script: | ||
- git config --global user.email $GITLAB_USER_EMAIL | ||
- git config --global user.name $GITLAB_USER_NAME | ||
- git remote add github "https://$GITHUB_USERNAME:[email protected]/StamusNetworks/stamusctl-templates.git" | ||
- git push github HEAD:next | ||
|
||
|
||
create-tags: | ||
stage: release | ||
|
@@ -108,18 +120,4 @@ create release: | |
- echo "running release_job" | ||
release: | ||
tag_name: '$CI_COMMIT_TAG' | ||
description: '$CI_COMMIT_TAG' | ||
|
||
release-to-github: | ||
stage: release | ||
image: bitnami/git | ||
needs: | ||
- create-tags | ||
rules: | ||
- if: '$CI_COMMIT_REF_NAME == "latest"' | ||
when: on_success | ||
script: | ||
- git config --global user.email $GITLAB_USER_EMAIL | ||
- git config --global user.name $GITLAB_USER_NAME | ||
- git remote add github "https://$GITHUB_USERNAME:[email protected]/StamusNetworks/stamusctl-templates.git" | ||
- git push github HEAD:next | ||
description: '$CI_COMMIT_TAG' |