Commit a7e1a1bc authored by FulcrandG's avatar FulcrandG
Browse files

Testing release job

parent 24327909
Loading
Loading
Loading
Loading
+14 −19
Original line number Diff line number Diff line
@@ -52,9 +52,6 @@ release:
      JOB=$(basename ${JOB})
      for VERSION in jobs/${JOB}/versions/*; do
        VERSION=$(basename ${VERSION} .md)
        OUT=$(curl https://gitlab.com/api/v4/projects/go2scale%2Fhub/releases/${JOB}-${VERSION} | grep '{"message":"403 Forbidden"}')
        if [[ $? -eq 0 ]]; then
          echo "Releasing ${JOB}-${VERSION}"
        curl --header 'Content-Type: application/json' --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \
          --data "{ \
              \"name\": \"${JOB}-${VERSION}\", \
@@ -69,8 +66,6 @@ release:
              } \
            }" \
          --request POST https://gitlab.com/api/v4/projects/go2scale%2Fhub/releases
        else
          echo "Release ${VERSION} for job ${JOB} exists"
        fi
      done
    done