https://github.com/twogg-git/go-droneci
Simple repo to test DroneCI pipelines
https://github.com/twogg-git/go-droneci
Last synced: 10 months ago
JSON representation
Simple repo to test DroneCI pipelines
- Host: GitHub
- URL: https://github.com/twogg-git/go-droneci
- Owner: twogg-git
- Created: 2019-08-26T19:07:33.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-16T22:49:54.000Z (over 6 years ago)
- Last Synced: 2025-03-23T02:01:53.173Z (about 1 year ago)
- Language: Go
- Size: 85.9 KB
- Stars: 0
- Watchers: 0
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DroneCI + Golang + Hub Docker!!!
[](https://cloud.drone.io/twogg-git/go-droneci)
Simple repo to test DroneCI pipelines
# Cloud Drone
Add your project into Cloud Drone
https://cloud.drone.io
# Documentation
https://docs.drone.io/
# Plugins
http://plugins.drone.io/
# Docker Plugin
http://plugins.drone.io/drone-plugins/drone-docker/
https://hub.docker.com/r/twogghub/go-droneci
```sh
- name: publish
image: plugins/docker
settings:
...
repo: {your_user}/{your_repo}
tags:
- latest
```
# Adding secrets
https://cloud.drone.io/{your_user}/{your_repo}/settings
```sh
- name: publish
...
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
...
```
# Email Plugin
http://plugins.drone.io/drillster/drone-email/
```sh
- name: notify
image: drillster/drone-email
settings:
host: smtp
...
when:
status: [ changed, success ]
services:
- name: smtp
image: catatnight/postfix
environment:
ports: 25
...
```
# Testing locally
``` sh
docker run --rm -p 8282:8080 --name testing twogghub/go-droneci:latest
```
```sh
localhost:8282
```
# Katacoda example
https://www.katacoda.com/courses/cicd/build-docker-images-drone
# ToDo
- Configure and run the Drone server in single-machine mode.
https://docs.drone.io/installation/github/single-machine/
- Configure #notify# step to send an email when sny step fails.
http://plugins.drone.io/drillster/drone-email/