Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 41aee80

Browse files
authored
add nightly pipeline (#322)
* add nightly pipeline * change trigger to "nightly" tag push instead of cron that is not supported in drone.io SAAS * clean trigger config * add exclude filter for nightly in the release pipeline * remove dist prefix form s3 push key * add build date to snapshot name template * exclude goreleaser generated config.yml * exclude goreleaser generated config.yml hardcoding path * update checksum template with tag and date prefix
1 parent d511e2b commit 41aee80

File tree

2 files changed

+45
-4
lines changed

2 files changed

+45
-4
lines changed

‎.drone.yml‎

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,47 @@ trigger:
8181
# exclude the tags used to build Docker images for drone
8282
- refs/tags/builder-*
8383
- refs/tags/drone-*
84+
- refs/tags/nightly
8485

8586
depends_on:
86-
- test
87+
- test
88+
89+
---
90+
kind: pipeline
91+
name: nightly
92+
93+
steps:
94+
- name: fetch
95+
# extra step needed to fetch tags after cloning
96+
image: docker:git
97+
commands:
98+
- git fetch --tags
99+
100+
- name: build
101+
image: arduino/arduino-cli:builder-0.1
102+
commands:
103+
- goreleaser --snapshot
104+
105+
- name: upload
106+
image: plugins/s3
107+
settings:
108+
bucket: arduino-downloads-prod-beagle
109+
access_key:
110+
from_secret: downloads_drone_io_aws_access_key_id
111+
secret_key:
112+
from_secret: downloads_drone_io_aws_secret_access_key
113+
source: dist/*
114+
target: /${DRONE_REPO_NAME}/nightly
115+
strip_prefix: dist/
116+
exclude:
117+
- dist/config.yaml
118+
119+
trigger:
120+
status:
121+
# skip the release if the previous build failed
122+
- success
123+
ref:
124+
- refs/tags/nightly
125+
126+
depends_on:
127+
- test

‎.goreleaser.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Global section
22
checksum:
3-
name_template: 'checksums.txt'
3+
name_template: '{{ .Tag }}-{{ time "20060102" }}-checksums.txt'
44

55
snapshot:
6-
name_template: "{{ .Tag }}-next"
6+
name_template: '{{ .Tag }}-{{ time "20060102" }}'
77

88
changelog:
99
sort: asc
@@ -99,4 +99,4 @@ blob:
9999
bucket: arduino-downloads-prod-beagle
100100
ids:
101101
- arduino_cli
102-
folder: "{{ .ProjectName }}"
102+
folder: "{{ .ProjectName }}"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /