Manually entered assembly steps are not directly supported by afaik. But it should be possible to achieve similar behavior using ci triggers .
build_package: stage: build script: - make build upload_package: stage: package script: - if [ -n "${UPLOAD_TO_S3}" ]; then make upload; fi
You can then invoke the rebuild by executing a POST request and passing the configured variable.
curl -X POST \ -F token=TOKEN \ -F ref=master \ -F "variables[UPLOAD_TO_S3]=true" \ https://gitlab.example.com/api/v3/projects/9/trigger/builds
If you have your own gitlab instance, it should be possible to enter a javascript button in every merge request that will cause curl.
Sergii Pechenizkyi
source share