A docker image for deploying to DigitalOcean kubernetes.
Suggested configuration for deploying any new release to my-cluster-name
cluster.
deploy:
stage: deploy
only:
- tags
image: kikobeats/docker-doctl
variables:
DOCKER_DRIVER: overlay2
services:
- docker:dind
before_script:
# initialize `doctl`
- doctl kubernetes cluster kubeconfig save my-cluster-name
# initialize `helm`
- helm init --client-only
# initialize `docker`
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
script:
- ./bin/publish
- ./bin/deploy
DIGITALOCEAN_ACCESS_TOKEN
: The variable should be exposed in order to authenticatedoctl
.
docker-doctl © Kiko Beats, released under the MIT License.
Authored and maintained by Kiko Beats with help from contributors.
kikobeats.com · GitHub @Kiko Beats · X @Kikobeats