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: ...@@ -24,15 +24,11 @@ variables:
- 'apk add --no-cache curl' - 'apk add --no-cache curl'
- export PLOC="$(ls ./${PPATH}/*.deb)" - export PLOC="$(ls ./${PPATH}/*.deb)"
- DEB_NAME=$PNAME-$PVERSION.deb - DEB_NAME=$PNAME-$PVERSION.deb
- echo $DEB_NAME - 'if [[ $PVERSION =~ .*SNAPSHOT$ ]]; then BUILD=SNAPSHOT; else BUILD=RELEASE; fi'
- echo $PKEY - echo "---AN APTLY ${BUILD} DEPLOYMENT IS BEING PERFORMED for $DEB_NAME in $PLOC---"
- echo $PLOC
- 'if [[ $PVERSION =~ .*${PKEY}$ ]]; then'
- echo "---A ${PKEY} BUILD IS BEING PERFORMED---"
- '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 --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 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' - 'curl -u ${APTLY_USER}:${APTLY_PASSWORD} -X PUT -H "Content-Type: application/json" --data "{}" ${APTLY_URL}/publish/:./indy'
- fi
stages: stages:
- build_version - build_version
...@@ -76,23 +72,22 @@ build_and_deploy: ...@@ -76,23 +72,22 @@ build_and_deploy:
paths: paths:
- ./oaipmh-webapp/target/*.deb - ./oaipmh-webapp/target/*.deb
# Deploy DEB files to APTLY repository. # Deploy SNAPSHOT DEB file to APTLY repository.
deploy_oaipmh-webapp_dev: deploy_oaipmh-webapp_dev:
only: only:
- develop - develop
variables: variables:
PNAME: 'oaipmh-webapp' PNAME: 'oaipmh-webapp'
PPATH: '${PNAME}/target' PPATH: '${PNAME}/target'
PKEY: 'SNAPSHOT'
APTLY_TARGET: 'indy-snapshots' APTLY_TARGET: 'indy-snapshots'
<<: *webapp <<: *webapp
# Deploy RELEASE DEB file to APTLY repository.
deploy_oaipmh-webapp_prd: deploy_oaipmh-webapp_prd:
only: only:
- main - main
variables: variables:
PNAME: 'oaipmh-webapp' PNAME: 'oaipmh-webapp'
PPATH: '${PNAME}/target' PPATH: '${PNAME}/target'
PKEY: 'RELEASE'
APTLY_TARGET: 'indy-releases' APTLY_TARGET: 'indy-releases'
<<: *webapp <<: *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