PalmStoneGames / kube-cert-manager

Manage Lets Encrypt certificates for a Kubernetes cluster.
Apache License 2.0
541 stars 102 forks source link

Add travis ci configuration. #63

Closed nanliu closed 7 years ago

nanliu commented 7 years ago

This is an example travis config to address the release issues per #60:

Here's the example git tag and the corresponding docker hub image. There are two steps to enable this:

  1. enable travis ci for this repo.
  2. use travis cli and configure the docker hub login:
    $ travis env set -r 'PalmStoneGames/kube-cert-manager' DOCKER_USERNAME <username>
    $ travis env set -r 'PalmStoneGames/kube-cert-manager' DOCKER_PASSWORD <password>

    To verify:

    travis env list -r 'PalmStoneGames/kube-cert-manager'
    # environment variables for PalmStoneGames/kube-cert-manager
    DOCKER_USERNAME=[secure]
    DOCKER_PASSWORD=[secure]
ahmetb commented 7 years ago

I think the current codebuild+buildspec+travis, which all of them keep duplicating the build steps, is not ideal.

How about creating a makefile with targets like get-deps, build, docker-image then each builder can use outputs of those things to tag/push images?