diff --git a/.gitlab/.gitlab-ci.yml b/.gitlab/.gitlab-ci.yml index 98ab48286..6e26481c5 100644 --- a/.gitlab/.gitlab-ci.yml +++ b/.gitlab/.gitlab-ci.yml @@ -446,6 +446,25 @@ package for linux amd64: - "*.deb" - "*.rpm" +upload_artifacts_to_nexus: + stage: post build + image: golang:$GOVERSION + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + script: + - find . -maxdepth 1 -name '*.rpm' -exec curl -v --user "$NEXUS_YUM_CREDS" --upload-file {} https://nexus.molecula.com/repository/molecula-yum/release/ \; + dependencies: + - package for linux amd64 + - package for linux arm64 + +trigger_m-cloud-images: + stage: post build + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + needs: + - upload_artifacts_to_nexus + trigger: molecula/m-cloud-images + package for linux arm64: stage: build image: golang:$GOVERSION