Merge 59ee80f149
into 301bdaab76
commit
3629ee7f80
@ -1,12 +1,24 @@
|
||||
build:
|
||||
image: golang:1.5
|
||||
environment:
|
||||
- GO15VENDOREXPERIMENT=1
|
||||
- CGO_ENABLED=0
|
||||
commands:
|
||||
- go test -cover -coverprofile coverage.out
|
||||
pipeline:
|
||||
build:
|
||||
image: ${IMAGE}
|
||||
commands:
|
||||
- go build
|
||||
- go test
|
||||
|
||||
publish:
|
||||
coverage:
|
||||
when:
|
||||
branch: master
|
||||
ecr:
|
||||
image: plugins/ecr
|
||||
region: us-east-1
|
||||
access_key: ${ECR_ACCESS_KEY}
|
||||
secret_key: ${ECR_SECRET_KEY}
|
||||
repo: 995121555896.dkr.ecr.us-east-1.amazonaws.com/cloudlock/test-sit-ci-built-svc
|
||||
dockerfile: ./Dockerfile
|
||||
context: .
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
- DOCKER_LAUNCH_DEBUG=true
|
||||
matrix:
|
||||
IMAGE:
|
||||
# - golang:1.7
|
||||
# - golang:1.8
|
||||
- golang:latest
|
||||
|
@ -0,0 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="author" content="bradrydzewski">
|
||||
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
|
||||
|
||||
<link rel="shortcut icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
||||
<link rel="shortcut icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
||||
|
||||
<title></title>
|
||||
<script>
|
||||
window.ENV = {};
|
||||
window.ENV.server = window.location.protocol+"//"+window.location.host;
|
||||
|
||||
|
||||
</script>
|
||||
<script>
|
||||
|
||||
|
||||
if (!window.EventSource) {
|
||||
var ssePolyfill = document.createElement("script");
|
||||
ssePolyfill.src = "https://cdnjs.cloudflare.com/ajax/libs/event-source-polyfill/0.0.9/eventsource.min.js";
|
||||
document.body.appendChild(ssePolyfill);
|
||||
}
|
||||
</script>
|
||||
<script src="/bower_components/webcomponentsjs/webcomponents-loader.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono">
|
||||
<link rel="import" href="/src/drone/drone-app.html">
|
||||
|
||||
<style>
|
||||
html, body {
|
||||
padding:0px;
|
||||
margin:0px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<drone-app></drone-app>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,6 @@
|
||||
FROM golang:latest
|
||||
RUN mkdir /app
|
||||
ADD . /app/
|
||||
WORKDIR /app
|
||||
RUN go build -o main .
|
||||
CMD ["/app/main"]
|
@ -1,3 +1,5 @@
|
||||
# drone-with-go [](http://beta.drone.io/drone-demos/drone-with-go) [](https://aircover.co/drone-demos/drone-with-go)
|
||||
|
||||
An example of how to test Go code with Drone.
|
||||
|
||||
Inspect the .drone.yml file for details on the build steps for this simple go project.
|
||||
|
Loading…
Reference in New Issue