Added caching and used alpine
continuous-integration/drone/push Build is passing Details

This commit is contained in:
DutchEllie 2022-05-11 13:45:31 +02:00
parent 7d5ade1306
commit 955ebad888
Signed by: DutchEllie
SSH Key Fingerprint: SHA256:dKq6ZSgN5E3Viqrw/+xAdf2VdR6hdRGNyrYqXXwfjTY
3 changed files with 10 additions and 2 deletions

View File

@ -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:

View File

@ -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 . ./

View File

@ -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 . ./