From 0991e6c8a06f158ada10ae98150f15801ff755b3 Mon Sep 17 00:00:00 2001 From: Noel Georgi Date: Tue, 20 Sep 2022 19:11:07 +0530 Subject: [PATCH] fix: drone release pipeline Add a docker service fo creating release notes. Signed-off-by: Noel Georgi --- .drone.yaml | 107 +++++++++++++++++++++++++++++++++------------------- 1 file changed, 69 insertions(+), 38 deletions(-) diff --git a/.drone.yaml b/.drone.yaml index 0efdab73..ea3181a2 100644 --- a/.drone.yaml +++ b/.drone.yaml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -163,9 +190,13 @@ steps: - failure trigger: + branch: + exclude: + - renovate/* + - dependabot/* status: - - success - - failure + - success + - failure depends_on: - default