Skip to content
Snippets Groups Projects
Commit 10c6111b authored by Stefan E. Funk's avatar Stefan E. Funk
Browse files

Remove RELEASE after version

Please use a.b.c-SNAPSHOT and a.b.c for SNAPSHOT and RELEASE builds an deployments.
parent 71e8ec54
No related branches found
No related tags found
No related merge requests found
Pipeline #272141 failed
......@@ -24,15 +24,11 @@ variables:
- 'apk add --no-cache curl'
- export PLOC="$(ls ./${PPATH}/*.deb)"
- DEB_NAME=$PNAME-$PVERSION.deb
- echo $DEB_NAME
- echo $PKEY
- echo $PLOC
- 'if [[ $PVERSION =~ .*${PKEY}$ ]]; then'
- echo "---A ${PKEY} BUILD IS BEING PERFORMED---"
- 'if [[ $PVERSION =~ .*SNAPSHOT$ ]]; then BUILD=SNAPSHOT; else BUILD=RELEASE; fi'
- echo "---AN APTLY ${BUILD} DEPLOYMENT IS BEING PERFORMED for $DEB_NAME in $PLOC---"
- 'curl -u ${APTLY_USER}:${APTLY_PASSWORD} -X POST --header "Content-Type:multipart/form-data" -F file=@${PLOC} ${APTLY_URL}/files/${DEB_NAME}'
- 'curl -u ${APTLY_USER}:${APTLY_PASSWORD} -X POST ${APTLY_URL}/repos/${APTLY_TARGET}/file/${DEB_NAME}'
- 'curl -u ${APTLY_USER}:${APTLY_PASSWORD} -X PUT -H "Content-Type: application/json" --data "{}" ${APTLY_URL}/publish/:./indy'
- fi
stages:
- build_version
......@@ -76,23 +72,22 @@ build_and_deploy:
paths:
- ./oaipmh-webapp/target/*.deb
# Deploy DEB files to APTLY repository.
# Deploy SNAPSHOT DEB file to APTLY repository.
deploy_oaipmh-webapp_dev:
only:
- develop
variables:
PNAME: 'oaipmh-webapp'
PPATH: '${PNAME}/target'
PKEY: 'SNAPSHOT'
APTLY_TARGET: 'indy-snapshots'
<<: *webapp
# Deploy RELEASE DEB file to APTLY repository.
deploy_oaipmh-webapp_prd:
only:
- main
variables:
PNAME: 'oaipmh-webapp'
PPATH: '${PNAME}/target'
PKEY: 'RELEASE'
APTLY_TARGET: 'indy-releases'
<<: *webapp
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment