Skip to content
A Demo to show workflow of Drone CI + GitFlow + Semantic Release + Kubernetes
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
kubernetes fix: upgrade drone to 1.0.0 Mar 28, 2019
test feat: single person workflow Mar 22, 2019
.drone.yml fix: added auto deploy to k8s Mar 28, 2019
.gitignore feat: hello world of drone Mar 22, 2019
Dockerfile feat: single person workflow Mar 22, 2019
README.md fix: upgrade drone to 1.0.0 Mar 28, 2019
ci-demo.yaml
index.html feat: single person workflow Mar 22, 2019
release.config.js

README.md

A Demo to show workflow of Drone CI + GitFlow + Semantic Release + Kubernetes

Build Status

Step by step, to show how to build a powerful team development workflow with CI

Step 0: Hello world

  1. Use drone cloud or setup a private drone by k8s

Kubernetes config files under ./kubernetes

  1. prepare .drone.yml
kind: pipeline
name: deploy

steps:
- name: hello-world
  image: docker
  commands:
    - echo "hello world"

Step 1: For single person, manually release

  1. Add a secret in Drone, key is DOCKER_PASSWORD, value is your docker registry password

  2. prepare .drone.yml

kind: pipeline
name: deploy

steps:
  - name: unit-test
    image: node:10
    commands:
      - node test/index.js
    when:
      branch: master
      event: push
  - name: build-image
    image: plugins/docker
    settings:
      repo: allovince/drone-ci-demo
      username: allovince
      password:
        from_secret: DOCKER_PASSWORD
      auto_tag: true
    when:
      event: tag
  1. push to master branch will trigger unit test

  2. manually release on github will trigger building docker image

Step 2: For team develop, support GitFlow

Change .drone.yml as this

Step 3: For team develop, support GitFlow, with semantic-release

Change .drone.yml as this

You can’t perform that action at this time.