Git Product home page Git Product logo

aliyuncli-travis-docker's Introduction

alibaba cloud aliyuncli github travis

Alibaba Cloud Infrastructure as Code Quickstart Docker Automated Build Docker Pulls Open Source Love Gitter Chat

What you need

Configuration

1.) Activate Travis for the Repository

2.) Go to Travis Repository Settings

Under General i have my Settings that:

  • ON: Building only if .travis.yml is present
  • ON: Build branch updates
  • ON: Limit concurrent jobs? 1
  • OFF: Build pull request updates

3.) Add your Credentials to Environment Variables

The Terraform Alicloud Provider Plugin expect the Environment Variables named like these:

  • ALICLOUD_ACCESS_KEY="your-key-here"
  • ALICLOUD_SECRET_KEY="your-secret-here"
  • ALICLOUD_REGION="your-region"

Ensure to disable the Display value in build log

You can read in more detail about this here.

4.) Add .travis.yml to your Repo

For a clean and isolated work i choose the Docker service for Travis CI.

Ensure to have all your commands which needs access to the encrypted environment variables from travis in the before_script, for whatever weird reason after you can't access them anymore e.g. via script. I hope this get's updated in the future.

sudo: required

language: bash

dist: trusty

group: deprecated-2017Q4

services:
  - docker

env:
  - TRAVIS_SECURE_ENV_VARS=true

before_script:
  - docker pull ellerbrock/alpine-aliyuncli
  - docker run -e "ALICLOUD_ACCESS_KEY=${ALICLOUD_ACCESS_KEY}" -e "ALICLOUD_SECRET_KEY=${ALICLOUD_SECRET_KEY}" -e "ALICLOUD_REGION=${ALICLOUD_REGION}" ellerbrock/alpine-aliyuncli

notifications:
  email:
    on_success: never
    on_failure: always

Support

You can get direct support for my Open Source projects on Alibaba Cloud here

gitter

Try Alibaba Cloud

Sign up today and get $300 valid for the first 60 days to try Alibaba Cloud.

Contact

GithubDockernpmTwitterFacebookGoogle+Gitter

License

MIT license

This work by Maik Ellerbrock is licensed under a Creative Commons Attribution 4.0 International License and the underlying source code is licensed under the MIT license.

aliyuncli-travis-docker's People

Contributors

ellerbrock avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.