Skip to content

Commit 7be3f80

Browse files
committed
Add release workflow in GitHub Actions, remove Drone Release CI
Signed-off-by: Derek Nola <derek.nola@suse.com>
1 parent 68d4a62 commit 7be3f80

File tree

2 files changed

+342
-218
lines changed

2 files changed

+342
-218
lines changed

.drone.yml

Lines changed: 0 additions & 218 deletions
Original file line numberDiff line numberDiff line change
@@ -31,225 +31,7 @@ steps:
3131
- name: docker
3232
path: /var/run/docker.sock
3333

34-
- name: github_binary_release
35-
image: plugins/github-release
36-
settings:
37-
api_key:
38-
from_secret: github_token
39-
checksum:
40-
- sha256
41-
checksum_file: CHECKSUMsum-amd64.txt
42-
checksum_flatten: true
43-
files:
44-
- dist/artifacts/*
45-
prerelease: true
46-
when:
47-
event:
48-
- tag
49-
instance:
50-
- drone-publish.k3s.io
51-
ref:
52-
- refs/head/master
53-
- refs/tags/*
54-
55-
- name: docker-publish
56-
image: plugins/docker
57-
settings:
58-
dockerfile: Dockerfile
59-
target: production
60-
username:
61-
from_secret: docker_username
62-
password:
63-
from_secret: docker_password
64-
repo: rancher/helm-controller
65-
tag: "${DRONE_TAG}-${DRONE_STAGE_ARCH}"
66-
when:
67-
event:
68-
- tag
69-
instance:
70-
- drone-publish.k3s.io
71-
ref:
72-
- refs/head/master
73-
- refs/tags/*
74-
75-
volumes:
76-
- name: docker
77-
host:
78-
path: /var/run/docker.sock
79-
80-
---
81-
kind: pipeline
82-
type: docker
83-
name: arm64
84-
85-
platform:
86-
os: linux
87-
arch: arm64
88-
89-
steps:
90-
- name: build
91-
image: docker:27.5
92-
commands:
93-
- apk add make git bash file
94-
- git config --global --add safe.directory /drone/src
95-
- make
96-
environment:
97-
ARCH: "${DRONE_STAGE_ARCH}"
98-
volumes:
99-
- name: docker
100-
path: /var/run/docker.sock
101-
102-
- name: github_binary_release
103-
image: plugins/github-release
104-
settings:
105-
api_key:
106-
from_secret: github_token
107-
checksum:
108-
- sha256
109-
checksum_file: CHECKSUMsum-arm64.txt
110-
checksum_flatten: true
111-
files:
112-
- dist/artifacts/*
113-
prerelease: true
114-
when:
115-
event:
116-
- tag
117-
instance:
118-
- drone-publish.k3s.io
119-
ref:
120-
- refs/head/master
121-
- refs/tags/*
122-
123-
- name: docker-publish
124-
image: plugins/docker
125-
settings:
126-
dockerfile: Dockerfile
127-
target: production
128-
username:
129-
from_secret: docker_username
130-
password:
131-
from_secret: docker_password
132-
repo: rancher/helm-controller
133-
tag: "${DRONE_TAG}-${DRONE_STAGE_ARCH}"
134-
when:
135-
event:
136-
- tag
137-
instance:
138-
- drone-publish.k3s.io
139-
ref:
140-
- refs/head/master
141-
- refs/tags/*
142-
143-
volumes:
144-
- name: docker
145-
host:
146-
path: /var/run/docker.sock
147-
148-
---
149-
kind: pipeline
150-
type: docker
151-
name: arm
152-
153-
platform:
154-
os: linux
155-
arch: arm
156-
157-
steps:
158-
- name: build
159-
image: docker:27.5
160-
commands:
161-
- apk add make git bash file
162-
- git config --global --add safe.directory /drone/src
163-
- make
164-
environment:
165-
ARCH: "${DRONE_STAGE_ARCH}"
166-
volumes:
167-
- name: docker
168-
path: /var/run/docker.sock
169-
170-
- name: github_binary_release
171-
# latest tag is no longer available for ARM 32-bit
172-
image: plugins/github-release:linux-arm
173-
settings:
174-
api_key:
175-
from_secret: github_token
176-
checksum:
177-
- sha256
178-
checksum_file: CHECKSUMsum-arm.txt
179-
checksum_flatten: true
180-
files:
181-
- dist/artifacts/*
182-
prerelease: true
183-
when:
184-
event:
185-
- tag
186-
instance:
187-
- drone-publish.k3s.io
188-
ref:
189-
- refs/head/master
190-
- refs/tags/*
191-
192-
- name: docker-publish
193-
# latest tag is no longer available for ARM 32-bit
194-
image: plugins/docker:linux-arm
195-
settings:
196-
dockerfile: Dockerfile
197-
target: production
198-
username:
199-
from_secret: docker_username
200-
password:
201-
from_secret: docker_password
202-
repo: rancher/helm-controller
203-
tag: "${DRONE_TAG}-${DRONE_STAGE_ARCH}"
204-
when:
205-
event:
206-
- tag
207-
instance:
208-
- drone-publish.k3s.io
209-
ref:
210-
- refs/head/master
211-
- refs/tags/*
212-
21334
volumes:
21435
- name: docker
21536
host:
21637
path: /var/run/docker.sock
217-
218-
---
219-
kind: pipeline
220-
type: docker
221-
name: manifest
222-
223-
platform:
224-
os: linux
225-
arch: amd64
226-
227-
steps:
228-
- name: manifest
229-
image: plugins/manifest:1.0.2
230-
settings:
231-
username:
232-
from_secret: docker_username
233-
password:
234-
from_secret: docker_password
235-
platforms:
236-
- linux/amd64
237-
- linux/arm64
238-
- linux/arm
239-
target: "rancher/helm-controller:${DRONE_TAG}"
240-
template: "rancher/helm-controller:${DRONE_TAG}-ARCH"
241-
when:
242-
event:
243-
- tag
244-
instance:
245-
- drone-publish.k3s.io
246-
ref:
247-
- refs/head/master
248-
- refs/tags/*
249-
250-
depends_on:
251-
- amd64
252-
- arm64
253-
- arm
254-
255-
...

0 commit comments

Comments
 (0)