Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitlab-ci.yml - dpl: command not found error #214

Closed
Sklico opened this issue May 24, 2018 · 5 comments
Closed

gitlab-ci.yml - dpl: command not found error #214

Sklico opened this issue May 24, 2018 · 5 comments

Comments

@Sklico
Copy link

Sklico commented May 24, 2018

This is my gitlab-ci.yml file:

image: ruby:latest

stages:
  - deploy

deploy_master:
  stage: deploy
  script:
    - gem install dpl
    - dpl --provider=heroku --app=$HEROKU_APP_NAME --api-key=$HEROKU_API_KEY
  only:
    - master
  when: on_success

deploy_test:
  stage: deploy
  script:
    - gem install dpl
    - dpl --provider=heroku --app=$HEROKU_TEST_APP_NAME --api-key=$HEROKU_API_KEY
  only:
    - test
  when: on_success

And this is output from pipeline:

Checking out 2c69d48d as test...
Skipping Git submodules setup
$ gem install dpl
Successfully installed dpl-1.9.6
1 gem installed
$ dpl --provider=heroku --app=$HEROKU_TEST_APP_NAME --api-key=$HEROKU_API_KEY
/bin/bash: line 57: dpl: command not found
ERROR: Job failed: exit code 1

It worked yesterday, but today, it still fails on dpl command. I've tried different ruby images, but nothing changed. It works, when I use a little workaround and use this in my gitlab-ci file:

  • export PATH=$PATH:/usr/local/bundle/bin
@yosifkit
Copy link
Member

yosifkit commented May 24, 2018

Duplicate of #211, #212 and #213, fixed by #209.

@Sklico
Copy link
Author

Sklico commented May 24, 2018

@yosifkit - I'm sorry, I saw that issues before, but as I understand, the fix should be merged and It still doesn't work for me, so I thought, it's different problem.

@yosifkit
Copy link
Member

@mjalkio
Copy link

mjalkio commented May 24, 2018

Hi @yosifkit, I'm sorry I can't find anywhere in the documentation that explains when after the merge the updates will be visible on Docker Hub. Is it there somewhere?

@tianon
Copy link
Member

tianon commented May 24, 2018

Once they're merged there, they need to build/push -- see https://doi-janky.infosiftr.net/job/multiarch/view/images/view/ruby/, specifically https://doi-janky.infosiftr.net/job/multiarch/job/amd64/job/ruby/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants