Skip to content
This repository was archived by the owner on Mar 31, 2021. It is now read-only.

Commit

Permalink
Updating golang version and releasing v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jones2026 committed Mar 26, 2019
1 parent 12ffd4c commit 80f6e8d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 20 deletions.
50 changes: 30 additions & 20 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,34 @@
---
kind: pipeline
name: default

platform:
os: linux
arch: amd64

steps:
- name: test
image: golang:1.12
commands:
- "CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags \"-static\"' ."

- name: publish
image: plugins/docker
settings:
auto_tag: true
cache_from: "${DRONE_REPO,,}:latest"
password:
from_secret: docker_password
repo: "${DRONE_REPO,,}"
username:
from_secret: docker_username
when:
event:
- push
- tag

trigger:
branch:
- master
steps:
- name: test
image: "golang:1.11"
commands:
- 'CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags ''-extldflags "-static"'' .'
- name: publish
image: plugins/docker
settings:
repo: "${DRONE_REPO,,}"
cache_from: "${DRONE_REPO,,}:latest"
tags: latest
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
- push
- tag
- master

...
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
module github.com/jones2026/drone-flowdock

go 1.12

0 comments on commit 80f6e8d

Please sign in to comment.