Skip to content

Commit

Permalink
fix: drone release pipeline
Browse files Browse the repository at this point in the history
Add a docker service fo creating release notes.

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed Sep 20, 2022
1 parent e6951d3 commit 0991e6c
Showing 1 changed file with 69 additions and 38 deletions.
107 changes: 69 additions & 38 deletions .drone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ steps:
cpu: 24000
memory: 48GiB
volumes:
- name: docker-socket
- name: outer-docker-socket
path: /var/run
- name: ssh
path: /root/.ssh
- name: docker
- name: buildx
path: /root/.docker/buildx

- name: build-pull-request
Expand All @@ -37,11 +37,11 @@ steps:
include:
- pull_request
volumes:
- name: docker-socket
- name: outer-docker-socket
path: /var/run
- name: ssh
path: /root/.ssh
- name: docker
- name: buildx
path: /root/.docker/buildx

- name: build-nonfree-pull-request
Expand All @@ -56,11 +56,11 @@ steps:
include:
- pull_request
volumes:
- name: docker-socket
- name: outer-docker-socket
path: /var/run
- name: ssh
path: /root/.ssh
- name: docker
- name: buildx
path: /root/.docker/buildx

- name: build-and-publish
Expand All @@ -79,32 +79,30 @@ steps:
exclude:
- pull_request
volumes:
- name: docker-socket
- name: outer-docker-socket
path: /var/run
- name: ssh
path: /root/.ssh
- name: docker
- name: buildx
path: /root/.docker/buildx

- name: release-notes
image: autonomy/build-container:latest
pull: always
commands:
- make release-notes
- make release-notes
volumes:
- name: outer-docker-socket
path: /var/outer-run
- name: docker-socket
path: /var/run
- name: buildx
path: /root/.docker/buildx
- name: ssh
path: /root/.ssh
- name: docker-socket
path: /var/run
- name: ssh
path: /root/.ssh
- name: buildx
path: /root/.docker/buildx
when:
event:
- tag
- tag
depends_on:
- build-and-publish
- build-and-publish

- name: release
image: plugins/github-release
Expand All @@ -113,35 +111,64 @@ steps:
api_key:
from_secret: github_token
checksum:
- sha256
- sha512
- sha256
- sha512
draft: true
files:
- _out/RELEASE_NOTES.md
- _out/RELEASE_NOTES.md
note: _out/RELEASE_NOTES.md
volumes:
- name: outer-docker-socket
path: /var/outer-run
- name: docker-socket
path: /var/run
- name: buildx
path: /root/.docker/buildx
- name: ssh
path: /root/.ssh
- name: docker-socket
path: /var/run
- name: ssh
path: /root/.ssh
- name: buildx
path: /root/.docker/buildx
when:
event:
- tag
- tag
depends_on:
- release-notes
- release-notes

volumes:
services:
- name: docker
image: docker:20.10-dind
entrypoint:
- dockerd
commands:
- --dns=8.8.8.8
- --dns=8.8.4.4
- --mtu=1500
- --log-level=error
privileged: true
volumes:
- name: docker-socket
path: /var/run
- name: buildx
path: /root/.docker/buildx
- name: ssh
path: /root/.ssh

volumes:
- name: outer-docker-socket
host:
path: /var/ci-docker
- name: docker
temp: {}
- name: docker-socket
temp:
medium: memory
- name: buildx
temp:
medium: memory
- name: ssh
temp: {}
temp:
medium: memory

trigger:
branch:
exclude:
- renovate/*
- dependabot/*

---
kind: pipeline
type: kubernetes
Expand All @@ -163,9 +190,13 @@ steps:
- failure

trigger:
branch:
exclude:
- renovate/*
- dependabot/*
status:
- success
- failure
- success
- failure

depends_on:
- default

0 comments on commit 0991e6c

Please sign in to comment.