Commit d3faf074 authored by Stefan Funk's avatar Stefan Funk
Browse files

Update .gitlab-ci.yml

parent a8d4a270
......@@ -175,14 +175,14 @@ deploy_dev:
build_number: $PIPELINE_ID
full_version: '${VERSION}-BETA-${build_number}'
DEB_NAME: 'dariahde-geobrowser-beta_${full_version}.deb'
DEPLOY_DEB_COMMAND: 'curl -u ci:${APTLY_PASSWORD} -X PUT -H "Content-Type: application/json" --data "{}" ${APTLY_URL}/publish/:./indy'
DEPLOY_DEB_COMMAND: 'curl -u ${APTLY_USER}:${APTLY_PASSWORD} -X PUT -H "Content-Type: application/json" --data "{}" ${APTLY_URL}/publish/:./indy'
script:
- 'apk add --no-cache bash'
- 'apk add --no-cache curl'
- curl --version
- export DEB_FILE="$(ls ./*.deb)"
- curl -u ci:${APTLY_PASSWORD} -X POST --header "Content-Type:multipart/form-data" -F file=@${DEB_FILE} ${APTLY_URL}/files/${DEB_NAME}
- curl -u ci:${APTLY_PASSWORD} -X POST ${APTLY_URL}/repos/indy-releases/file/${DEB_NAME}
- curl -u ${APTLY_USER}:${APTLY_PASSWORD} -X POST --header "Content-Type:multipart/form-data" -F file=@${DEB_FILE} ${APTLY_URL}/files/${DEB_NAME}
- curl -u ${APTLY_USER}:${APTLY_PASSWORD} -X POST ${APTLY_URL}/repos/indy-releases/file/${DEB_NAME}
- echo $DEPLOY_DEB_COMMAND
- response=$(eval "$DEPLOY_DEB_COMMAND")
- echo $response
......@@ -199,14 +199,14 @@ deploy_live:
build_number: $PIPELINE_ID
full_version: '${VERSION}-${build_number}'
DEB_NAME: 'dariahde-geobrowser_${full_version}.deb'
DEPLOY_DEB_COMMAND: 'curl -u ci:${APTLY_PASSWORD} -X PUT -H "Content-Type: application/json" --data "{}" ${APTLY_URL}/publish/:./indy'
DEPLOY_DEB_COMMAND: 'curl -u ${APTLY_USER}:${APTLY_PASSWORD} -X PUT -H "Content-Type: application/json" --data "{}" ${APTLY_URL}/publish/:./indy'
script:
- 'apk add --no-cache bash'
- 'apk add --no-cache curl'
- curl --version
- export DEB_FILE="$(ls ./*.deb)"
- curl -u ci:${APTLY_PASSWORD} -X POST --header "Content-Type:multipart/form-data" -F file=@${DEB_FILE} ${APTLY_URL}/files/${DEB_NAME}
- curl -u ci:${APTLY_PASSWORD} -X POST ${APTLY_URL}/repos/indy-releases/file/${DEB_NAME}
- curl -u ${APTLY_USER}:${APTLY_PASSWORD} -X POST --header "Content-Type:multipart/form-data" -F file=@${DEB_FILE} ${APTLY_URL}/files/${DEB_NAME}
- curl -u${APTLY_USER}:${APTLY_PASSWORD} -X POST ${APTLY_URL}/repos/indy-releases/file/${DEB_NAME}
- echo $DEPLOY_DEB_COMMAND
- response=$(eval "$DEPLOY_DEB_COMMAND")
- echo $response
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment