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
e1689194
Commit
e1689194
authored
Feb 15, 2020
by
galal-hussein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Send dispatch event with drone
parent
59260191
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 @
e1689194
...
@@ -286,3 +286,37 @@ depends_on:
...
@@ -286,3 +286,37 @@ depends_on:
-
amd64
-
amd64
-
arm64
-
arm64
-
arm
-
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 @
e1689194
#!/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