Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
16c99b87
Unverified
Commit
16c99b87
authored
Feb 26, 2020
by
Erik Wilson
Committed by
GitHub
Feb 26, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1458 from galal-hussein/dispatch_backport_116
Send dispatch event with drone
parents
c5f003b2
4753e58b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
0 deletions
+47
-0
.drone.yml
.drone.yml
+35
-0
dispatch
scripts/dispatch
+12
-0
No files found.
.drone.yml
View file @
16c99b87
...
...
@@ -286,3 +286,37 @@ depends_on:
-
amd64
-
arm64
-
arm
---
kind
:
pipeline
name
:
dispatch
platform
:
os
:
linux
arch
:
amd64
steps
:
-
name
:
dispatch
image
:
rancher/dapper:v0.4.2
environment
:
PAT_USERNAME
:
from_secret
:
pat_username
PAT_TOKEN
:
from_secret
:
pat_token
commands
:
-
dapper dispatch
volumes
:
-
name
:
docker
path
:
/var/run/docker.sock
when
:
instance
:
-
drone-publish.rancher.io
ref
:
-
refs/head/master
-
refs/tags/*
event
:
-
tag
volumes
:
-
name
:
docker
host
:
path
:
/var/run/docker.sock
\ No newline at end of file
scripts/dispatch
0 → 100755
View file @
16c99b87
#!/bin/sh
set
-e
set
-x
REPO
=
"https://api.github.com/repos/rancher/k3s-upgrade/dispatches"
# send dispatch event to REPO
curl
-XPOST
-u
"
${
PAT_USERNAME
}
:
${
PAT_TOKEN
}
"
\
-H
"Accept: application/vnd.github.everest-preview+json"
\
-H
"Content-Type: application/json"
$REPO
\
--data
'{"event_type": "create_tag", "client_payload": {"tag":"'
"
$DRONE_TAG
"
'"}}'
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment