Giter Club home page Giter Club logo

tiller-circleci-orb's Introduction

Tiller CircleCI Orb

CircleCI Orb Version CircleCI Build Status License Hire Itineris Twitter Follow @itineris_ltd Twitter Follow @TangRufus

Deploy Trellis, Bedrock and Sage(optional) via CircleCI

Built with โ™ฅ by Itineris


Usage

Example use-cases are provided on the orb registry page. Source for these examples can be found within the src/examples directory.

Resources

CircleCI Orb Registry Page - The official registry page of this orb for all versions, executors, commands, and jobs described. CircleCI Orb Docs - Docs for using and creating CircleCI Orbs.


Itineris is hiring. Join Us!


FAQs

It looks awesome. Where can I find some more goodies like this

Where can I give 5-star reviews?

Thanks! Glad you like it. It's important to let us knows somebody is using this project. Please consider:

Feedback

Please provide feedback! We want to make this project as useful as possible. Please submit an issue and point out what you do and don't like, or fork the project and send pull requests. No issue is too small.

Security Vulnerabilities

If you discover a security vulnerability within this project, please email us at [email protected]. All security vulnerabilities will be promptly addressed.

Credits

Tiller CircleCI Orb is a Itineris Limited project and created by Tang Rufus.

Full list of contributors can be found here.

License

Tiller CircleCI Orb is released under the MIT License.

tiller-circleci-orb's People

Contributors

tangrufus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tiller-circleci-orb's Issues

Data could not be sent to remote host

I'm afraid this might be more of a support question and not a bug, but I'd appreciate it if you could point me into the right direction anyway. I've used this Orb the last couple of years on and off again, but when I try to use it in a new project I'm getting stuck at the following step:

trellis exec ansible-playbook deploy.yml -vvv -e env=staging -e site=my-site.com

CircleCI mentions the following:

Data could not be sent to remote host "IP NUMBER". Make sure this host can be reached over ssh: web@IP NUMBER: Permission denied (publickey).

I can access my DO droplet locally as web. Although I've used this Orb in earlier projects, I'm not clear how CircleCI's project keys should be configured. I have a Deploy Key and a User Key, but I'm not sure if the latter is necessary.

The following is my config.yml:

version: 2.1

orbs:
  tiller-circleci: itinerisltd/[email protected]
  
workflows:
  deploy:
    jobs:
      - tiller-circleci/deploy:
          name: deploy-staging
          known-hosts: 'github.com, IP NUMBER'
          trellis-repo: '[email protected]:stefthoen/my-site.com-trellis.git'
          site-env: staging
          site-name: my-site.com
          filters:
            branches:
              only: master

My group_vars/all/users.yml is configured as such:

# Documentation: https://roots.io/trellis/docs/ssh-keys/
admin_user: admin

# Also define 'vault_users' (`group_vars/staging/vault.yml`, `group_vars/production/vault.yml`)
users:
  - name: "{{ web_user }}"
    groups:
      - "{{ web_group }}"
    keys:
      - https://github.com/stefthoen.keys
  - name: "{{ admin_user }}"
    groups:
      - sudo
    keys:
      - https://github.com/stefthoen.keys

web_user: web
web_group: www-data
web_sudoers:
  - "/usr/sbin/service php{{ php_version }}-fpm *"

Do you have any idea what I could be doing wrong @tangrufus? What is the correct way to configure SSH keys in CircleCI so it works correctly with this orb? Thanks!

No Trellis project detected in the current directory or any of its parent directories.

Orb Version
3.4.0

Describe the bug
CI fails at prepare_trellis step:

#!/bin/bash -eo pipefail
trellis init
No Trellis project detected in the current directory or any of its parent directories.

Exited with code exit status 1
CircleCI received exit code 1

To Reproduce
Here's my example config.yml:

version: 2.1

orbs:
  tiller-circleci: itinerisltd/[email protected]
  cypress: cypress-io/cypress@1

executors:
  php-74:
    docker:
      - image: circleci/php:7.4-stretch
  node-12:
    docker:
      - image: itinerisltd/tiller-circleci:node-12

workflows:
  deploy:
    jobs:
      - tiller-circleci/deploy:
          name: deploy-production
          known-hosts: 'github.com, 140.82.114.3, 140.82.112.4, 140.82.114.4, 140.82.112.3' # GitHub.com hosts and IPs
          trellis-branch: main # or master if you prefer
          trellis-repo: [email protected]:roots/roots-example-project.git
          site-env: production
          site-name: example.com
          executor-tag: node-12
          vault-password: VAULT_PASSWORD

Expected behavior

This should work...I think. But I can't find an example config.yml for 3.4.0, so I'm flying blind here. Maybe I'm missing something. I'm using the expected and opinionated trellis & bedrock directory structure as seen here:
https://github.com/roots/roots-example-project.com

Additional context
This issue has something to do with this: #22
Given that the error happens when the CI runs trellis init.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.