Oops
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
4c7659bd37
commit
91e95a69e3
|
@ -0,0 +1,4 @@
|
|||
.drone.yml
|
||||
docker-ignore.yml
|
||||
LICENCE
|
||||
README.md
|
94
.drone.yml
94
.drone.yml
|
@ -6,8 +6,21 @@ platform:
|
|||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: build-main
|
||||
- name: build-pepebot
|
||||
image: golang:1.16.4-alpine
|
||||
volumes:
|
||||
- name: build
|
||||
path: /build
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
GOOS: linux
|
||||
commands:
|
||||
- go build -a -installsuffix cgo -o /build/app ./discord
|
||||
- name: build-publish-image
|
||||
image: plugins/docker
|
||||
volumes:
|
||||
- name: build
|
||||
path: /build
|
||||
settings:
|
||||
cache_from:
|
||||
- "dutchellie/pepebot:latest"
|
||||
|
@ -19,8 +32,36 @@ steps:
|
|||
repo: dutchellie/pepebot
|
||||
tags:
|
||||
- latest-amd64
|
||||
|
||||
volumes:
|
||||
- name: build
|
||||
temp: {}
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: pepebot_service_build_x86
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: build-pepebot_service
|
||||
image: golang:1.17-alpine
|
||||
volumes:
|
||||
- name: build
|
||||
path: /build
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
GOOS: linux
|
||||
commands:
|
||||
- cd ./pepeservice
|
||||
- go build -a -installsuffix cgo -o /build/app .
|
||||
- name: build-service
|
||||
image: plugins/docker
|
||||
volumes:
|
||||
- name: build
|
||||
path: /build
|
||||
settings:
|
||||
cache_from:
|
||||
- "dutchellie/pepebot_service:latest"
|
||||
|
@ -33,6 +74,10 @@ steps:
|
|||
tags:
|
||||
- latest-amd64
|
||||
|
||||
volumes:
|
||||
- name: build
|
||||
temp: {}
|
||||
|
||||
---
|
||||
|
||||
kind: pipeline
|
||||
|
@ -43,8 +88,21 @@ platform:
|
|||
arch: arm64
|
||||
|
||||
steps:
|
||||
- name: build-main
|
||||
- name: build-pepebot
|
||||
image: golang:1.16.4-alpine
|
||||
volumes:
|
||||
- name: build
|
||||
path: /build
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
GOOS: linux
|
||||
commands:
|
||||
- go build -a -installsuffix cgo -o /build/app ./discord
|
||||
- name: build-publish-image
|
||||
image: plugins/docker
|
||||
volumes:
|
||||
- name: build
|
||||
path: /build
|
||||
settings:
|
||||
cache_from:
|
||||
- "dutchellie/pepebot:latest"
|
||||
|
@ -56,8 +114,36 @@ steps:
|
|||
repo: dutchellie/pepebot
|
||||
tags:
|
||||
- latest-arm64
|
||||
|
||||
volumes:
|
||||
- name: build
|
||||
temp: {}
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: pepebot_service_build_arm64
|
||||
platform:
|
||||
os: linux
|
||||
arch: arm64
|
||||
|
||||
steps:
|
||||
- name: build-pepebot_service
|
||||
image: golang:1.17-alpine
|
||||
volumes:
|
||||
- name: build
|
||||
path: /build
|
||||
environment:
|
||||
CGO_ENABLED: 0
|
||||
GOOS: linux
|
||||
commands:
|
||||
- cd ./pepeservice
|
||||
- go build -a -installsuffix cgo -o /build/app .
|
||||
- name: build-service
|
||||
image: plugins/docker
|
||||
volumes:
|
||||
- name: build
|
||||
path: /build
|
||||
settings:
|
||||
cache_from:
|
||||
- "dutchellie/pepebot_service:latest"
|
||||
|
@ -70,6 +156,10 @@ steps:
|
|||
tags:
|
||||
- latest-arm64
|
||||
|
||||
volumes:
|
||||
- name: build
|
||||
temp: {}
|
||||
|
||||
---
|
||||
|
||||
kind: pipeline
|
||||
|
|
14
Dockerfile
14
Dockerfile
|
@ -1,13 +1,13 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
FROM golang:1.16.4-alpine AS builder
|
||||
WORKDIR /go/src/quenten.nl/pepebot/
|
||||
|
||||
COPY . ./
|
||||
RUN go mod download
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app ./discord
|
||||
#FROM golang:1.16.4-alpine AS builder
|
||||
#WORKDIR /go/src/quenten.nl/pepebot/
|
||||
#
|
||||
#COPY . ./
|
||||
#RUN go mod download
|
||||
#RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app ./discord
|
||||
|
||||
FROM alpine:latest
|
||||
RUN apk --no-cache add ca-certificates
|
||||
WORKDIR /root/
|
||||
COPY --from=builder /go/src/quenten.nl/pepebot/app .
|
||||
COPY /build/app .
|
||||
CMD ["./app"]
|
Loading…
Reference in New Issue