Added caching and used alpine
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7d5ade1306
commit
955ebad888
|
@ -9,6 +9,8 @@ steps:
|
||||||
- name: build-main
|
- name: build-main
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
|
cache_from:
|
||||||
|
- "dutchellie/pepebot:latest"
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
|
@ -20,6 +22,8 @@ steps:
|
||||||
- name: build-service
|
- name: build-service
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
|
cache_from:
|
||||||
|
- "dutchellie/pepebot_service:latest"
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
|
@ -42,6 +46,8 @@ steps:
|
||||||
- name: build-main
|
- name: build-main
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
|
cache_from:
|
||||||
|
- "dutchellie/pepebot:latest"
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
|
@ -53,6 +59,8 @@ steps:
|
||||||
- name: build-service
|
- name: build-service
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
|
cache_from:
|
||||||
|
- "dutchellie/pepebot_service:latest"
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
FROM golang:1.16.4 AS builder
|
FROM golang:1.16.4-alpine AS builder
|
||||||
WORKDIR /go/src/quenten.nl/pepebot/
|
WORKDIR /go/src/quenten.nl/pepebot/
|
||||||
|
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
FROM golang:1.17 AS builder
|
FROM golang:1.17-alpine AS builder
|
||||||
WORKDIR /go/src/quenten.nl/pepeservice
|
WORKDIR /go/src/quenten.nl/pepeservice
|
||||||
|
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
Loading…
Reference in New Issue