Skip to content

add nightly pipeline #322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Aug 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 42 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,47 @@ trigger:
# exclude the tags used to build Docker images for drone
- refs/tags/builder-*
- refs/tags/drone-*
- refs/tags/nightly

depends_on:
- test
- test

---
kind: pipeline
name: nightly

steps:
- name: fetch
# extra step needed to fetch tags after cloning
image: docker:git
commands:
- git fetch --tags

- name: build
image: arduino/arduino-cli:builder-0.1
commands:
- goreleaser --snapshot

- name: upload
image: plugins/s3
settings:
bucket: arduino-downloads-prod-beagle
access_key:
from_secret: downloads_drone_io_aws_access_key_id
secret_key:
from_secret: downloads_drone_io_aws_secret_access_key
source: dist/*
target: /${DRONE_REPO_NAME}/nightly
strip_prefix: dist/
exclude:
- dist/config.yaml

trigger:
status:
# skip the release if the previous build failed
- success
ref:
- refs/tags/nightly

depends_on:
- test
6 changes: 3 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Global section
checksum:
name_template: 'checksums.txt'
name_template: '{{ .Tag }}-{{ time "20060102" }}-checksums.txt'

snapshot:
name_template: "{{ .Tag }}-next"
name_template: '{{ .Tag }}-{{ time "20060102" }}'

changelog:
sort: asc
Expand Down Expand Up @@ -99,4 +99,4 @@ blob:
bucket: arduino-downloads-prod-beagle
ids:
- arduino_cli
folder: "{{ .ProjectName }}"
folder: "{{ .ProjectName }}"