Maybe this?
continuous-integration/drone/push Build is failing Details

This commit is contained in:
DutchEllie 2022-05-11 15:01:54 +02:00
parent 77530bac0b
commit fd624c6440
Signed by: DutchEllie
SSH Key Fingerprint: SHA256:dKq6ZSgN5E3Viqrw/+xAdf2VdR6hdRGNyrYqXXwfjTY
3 changed files with 8 additions and 16 deletions

View File

@ -10,19 +10,18 @@ steps:
image: golang:1.16.4-alpine image: golang:1.16.4-alpine
volumes: volumes:
- name: build - name: build
path: /build path: /drone/src/build
environment: environment:
CGO_ENABLED: 0 CGO_ENABLED: 0
GOOS: linux GOOS: linux
commands: commands:
- go build -a -installsuffix cgo -o /build/app ./discord - go build -a -installsuffix cgo -o ./build/app ./discord
- ls /build
- name: build-publish-image - name: build-publish-image
image: plugins/docker image: plugins/docker
privileged: true privileged: true
volumes: volumes:
- name: build - name: build
path: /build path: /drone/src/build
settings: settings:
cache_from: cache_from:
- "dutchellie/pepebot:latest" - "dutchellie/pepebot:latest"
@ -52,20 +51,19 @@ steps:
image: golang:1.17-alpine image: golang:1.17-alpine
volumes: volumes:
- name: build - name: build
path: /build path: /drone/src/pepeservice/build
environment: environment:
CGO_ENABLED: 0 CGO_ENABLED: 0
GOOS: linux GOOS: linux
commands: commands:
- cd ./pepeservice - cd ./pepeservice
- go build -a -installsuffix cgo -o /build/app . - go build -a -installsuffix cgo -o ./build/app .
- ls /build
- name: build-service - name: build-service
image: plugins/docker image: plugins/docker
privileged: true privileged: true
volumes: volumes:
- name: build - name: build
path: /build path: /drone/src/pepeservice/build
settings: settings:
cache_from: cache_from:
- "dutchellie/pepebot_service:latest" - "dutchellie/pepebot_service:latest"

View File

@ -8,9 +8,6 @@
FROM alpine:latest FROM alpine:latest
RUN apk --no-cache add ca-certificates RUN apk --no-cache add ca-certificates
WORKDIR /build COPY ./build/app /root
RUN ls
RUN ls /build
COPY . /root/
WORKDIR /root WORKDIR /root
CMD ["./app"] CMD ["./app"]

View File

@ -9,9 +9,6 @@
FROM alpine:latest FROM alpine:latest
RUN apk --no-cache add ca-certificates RUN apk --no-cache add ca-certificates
WORKDIR /build COPY ./build/app /root
RUN ls
RUN ls /build
COPY . /root/
WORKDIR /root WORKDIR /root
CMD ["./app"] CMD ["./app"]