Switching to Drone CI and giredore.
This commit is contained in:
parent
e042c4414f
commit
4d60a9b1b6
42
.drone.yml
Normal file
42
.drone.yml
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: build
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: notify-start
|
||||||
|
image: appleboy/drone-discord
|
||||||
|
settings:
|
||||||
|
webhook_id:
|
||||||
|
from_secret: discord_webhook_id
|
||||||
|
webhook_token:
|
||||||
|
from_secret: discord_webhook_secret
|
||||||
|
message: 'Starting building **{{repo.name}}#{{build.number}}@{{build.commit}}** @ {{datetime build.started "02-Jan-2006 15:04:05 MST" "Asia/Yekaterinburg"}} (See {{build.link}} for logs).'
|
||||||
|
|
||||||
|
- name: docker
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: dockerhub_user
|
||||||
|
password:
|
||||||
|
from_secret: dockerhub_password
|
||||||
|
repo: pztrn/bitlbee
|
||||||
|
auto_tag: true
|
||||||
|
|
||||||
|
- name: notify-end
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
|
- failure
|
||||||
|
image: appleboy/drone-discord
|
||||||
|
settings:
|
||||||
|
webhook_id:
|
||||||
|
from_secret: discord_webhook_id
|
||||||
|
webhook_token:
|
||||||
|
from_secret: discord_webhook_secret
|
||||||
|
message: "
|
||||||
|
{{#success build.status}}
|
||||||
|
**{{repo.name}}#{{build.number}}@{{build.commit}}** built and pushed to hub.docker.com.
|
||||||
|
{{ else }}
|
||||||
|
**{{repo.name}}#{{build.number}}@{{build.commit}}** failed. See {{build.link}}.
|
||||||
|
{{/success}}"
|
@ -1,16 +1,16 @@
|
|||||||
FROM golang:1.13-alpine AS build
|
FROM golang:1.13.1-alpine AS build
|
||||||
|
|
||||||
WORKDIR /go/src/gitlab.com/pztrn/fastpastebin
|
WORKDIR /go/src/go.dev.pztrn.name/fastpastebin
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
WORKDIR /go/src/gitlab.com/pztrn/fastpastebin/cmd/fastpastebin
|
WORKDIR /go/src/go.dev.pztrn.name/fastpastebin/cmd/fastpastebin
|
||||||
|
|
||||||
RUN go build
|
RUN go build
|
||||||
|
|
||||||
FROM alpine:3.10
|
FROM alpine:3.10
|
||||||
LABEL maintainer "Stanislav N. <pztrn@pztrn.name>"
|
LABEL maintainer "Stanislav N. <pztrn@pztrn.name>"
|
||||||
|
|
||||||
COPY --from=build /go/src/gitlab.com/pztrn/fastpastebin/cmd/fastpastebin/fastpastebin /app/fastpastebin
|
COPY --from=build /go/src/go.dev.pztrn.name/fastpastebin/cmd/fastpastebin/fastpastebin /app/fastpastebin
|
||||||
COPY docker/fastpastebin.docker.yaml /app/fastpastebin.yaml
|
COPY docker/fastpastebin.docker.yaml /app/fastpastebin.yaml
|
||||||
|
|
||||||
EXPOSE 25544
|
EXPOSE 25544
|
||||||
|
Loading…
Reference in New Issue
Block a user