Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

eb command not found #4

Open
kuriel-trivu opened this issue Nov 20, 2020 · 0 comments
Open

eb command not found #4

kuriel-trivu opened this issue Nov 20, 2020 · 0 comments

Comments

@kuriel-trivu
Copy link

With Gitlab Runner CI/CD throws eb command not found

.gitlab-ci.yml

... // other stages and configs, then:
deploy:
  stage: deploy
  image: coxauto/aws-ebcli
  dependencies:
    - build
  script:
    - mkdir -p ~/.aws
    - touch ~/.aws/config
    - chmod 600 ~/.aws/config
    - echo "[profile eb-cli]" >> ~/.aws/config
    - echo "aws_access_key_id=${AWS_ACCESS_KEY_ID}" >> ~/.aws/config
    - echo "aws_secret_access_key=${AWS_SECRET_ACCESS_KEY}" >> ~/.aws/config
    - git checkout $CI_COMMIT_REF_NAME
    - git fetch --all
    - git pull
    - eb labs cleanup-versions --force
    - eb deploy
    - echo "DEPLOYMENT OF $CI_COMMIT_REF_NAME IS COMPLETE"
  environment:
    name: $CI_COMMIT_REF_NAME
  only:
    - master

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

No branches or pull requests

1 participant