GitLab CI/CD does not work as advertised in documentation #4007
sgrossberndt
started this conversation in
General
Replies: 1 comment
-
sgrossberndt is right, https://github.com/deployphp/deployer/blob/7.x/docs/ci-cd.md?plain=1#L73 says: Line 73 in 101da0f but Image https://github.com/deployphp/deployer/blob/7.x/Dockerfile#L9 runs Line 9 in 101da0f In the master for the upcoming version 8 it has been changed from @antonmedv So please integrate the commit e6c5aae also in the version 7 branch so that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When creating a CI job as documented at https://deployer.org/docs/7.x/ci-cd#gitlab-cicd the deployment fails with
/bin/bash: dep: command not found
The problem is probably that setting an empty
entrypoint: [""]
is required to be able to execute thebefore_script
to add the SSH key, but inside the image the commanddep
is not knownThe default entrypoint is to run
php /bin/deployer.phar
:https://hub.docker.com/layers/deployphp/deployer/v7/images/sha256-442a2f14be51abdd61d2c102bd1c8631b5b1bbd76fb1f4999250e0f9c2557a4e
Running deployer with
works, so the problem is only the missing
dep
command.The recently added bitbucket-example uses
php /bin/deployer.phar
.Either
php /bin/deployer.phar
instead ofdep
inscript
or
dep
.Beta Was this translation helpful? Give feedback.
All reactions