Commit 3967766c authored by FulcrandG's avatar FulcrandG
Browse files

Testing release job

parent 450787c6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -52,7 +52,8 @@ release:
    -   JOB=$(basename ${JOB})
    -   for VERSION in jobs/${JOB}/versions/*; do
    -     VERSION=$(basename ${VERSION} .md)
    -     if [ $(curl https://gitlab.com/api/v4/projects/go2scale%2Fhub/releases/${JOB}-${VERSION}) | grep '{"message":"403 Forbidden"}' ]]; then
    -     OUT=$(curl https://gitlab.com/api/v4/projects/go2scale%2Fhub/releases/${JOB}-${VERSION} | grep '{"message":"403 Forbidden"}')
    -     if [[ $? -eq 0 ]]; then
    -       echo "no release for the version ${VERSION}"
    -       release-cli create --name ${JOB}-${VERSION} --description $(cat jobs/${JOB}/versions/${VERSION}.md) --tag-name ${JOB}-${VERSION} --ref ${CI_COMMIT_SHA}
              --assets-link "{\"name\":\"Hub url\",\"url\":\"https://jobs.go2scale.io/${VERSION}/${JOB}.yml\",\"link_type\":\"other\",\"filepath\":\"jobs/${JOB}/${JOB}.yml\"}"