Skip to content

Deploy build artifacts using Dpl

Using Dpl as deployment tool, I find that before deployment it does clean up git repository.

Preparing deploy
Cleaning up git repository with `git stash --all`. 
If you need build artifacts for deployment, set `deploy.skip_cleanup: true`. 
See https://docs.travis-ci.com/user/deployment/#Uploading-Files.

My project is Rails, and I have to create some config/secrets.yml file just before deployment, that should not be in the Git repository.

I see from Travis CI document that in case of .travis.yml we can write:

deploy:
	skip_cleanup: true

Do we have an equivalent setting for .gitlab-ci.yml?