Skip to content

Commit

Permalink
chore: use persistent builders for caching
Browse files Browse the repository at this point in the history
This switches amd64 builders to be persistent (running outside of the
build) so that cache persists across the builds.

Signed-off-by: Andrey Smirnov <[email protected]>
  • Loading branch information
smira authored and talos-bot committed Jul 22, 2020
1 parent 4202fe5 commit c7a0a07
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,6 @@ get:
kind: pipeline
name: default

services:
- name: docker
image: docker:19.03.3-dind
entrypoint:
- dockerd
command:
- --dns=8.8.8.8
- --dns=8.8.4.4
- --mtu=1440
- --log-level=error
privileged: true
volumes:
- name: docker-socket
path: /var/run

steps:
- name: setup-ci
image: autonomy/build-container:latest
Expand All @@ -38,10 +23,10 @@ steps:
volumes:
- name: docker-socket
path: /var/run
- name: docker
path: /root/.docker/buildx
- name: ssh
path: /root/.ssh
- name: docker
path: /root/.docker/buildx

- name: build-pull-request
image: autonomy/build-container:latest
Expand All @@ -55,10 +40,10 @@ steps:
volumes:
- name: docker-socket
path: /var/run
- name: docker
path: /root/.docker/buildx
- name: ssh
path: /root/.ssh
- name: docker
path: /root/.docker/buildx

- name: build-and-publish
image: autonomy/build-container:latest
Expand All @@ -78,14 +63,15 @@ steps:
volumes:
- name: docker-socket
path: /var/run
- name: docker
path: /root/.docker/buildx
- name: ssh
path: /root/.ssh
- name: docker
path: /root/.docker/buildx

volumes:
- name: docker-socket
temp: {}
host:
path: /var/ci-docker
- name: docker
temp: {}
- name: ssh
Expand Down

0 comments on commit c7a0a07

Please sign in to comment.