diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6efde60..c49199b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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:$GITHUB_PAT@github.com/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:$GITHUB_PAT@github.com/StamusNetworks/stamusctl-templates.git" - - git push github HEAD:next + description: '$CI_COMMIT_TAG' \ No newline at end of file