-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.drone.yml
218 lines (197 loc) · 5.84 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
---
kind: pipeline
type: docker
name: test-release-aiostreams
workspace:
path: /drone/src
steps:
- name: create-test-archive
image: walkero/lha-on-docker:latest
commands:
- mkdir aiostreams
- mv ./docs ./aiostreams/
- mv ./simplejson ./aiostreams/
- mv ./*.py ./aiostreams/
- mv ./*.py.examples ./aiostreams/
- mv ./*.info ./aiostreams/
- mv ./*.md ./aiostreams/docs/
- mv LICENSE ./aiostreams/docs/
- sed -i "s/RELEASE_DATE/$(date +'%Y-%m-%d')/" ./aiostreams/docs/aiostreams.guide ./aiostreams/docs/CHANGELOG.md ./aiostreams/cmn.py
- sed -i "s/VERSION_TAG/TEST/" ./aiostreams/docs/aiostreams.guide ./aiostreams/docs/CHANGELOG.md ./aiostreams/cmn.py ./aminet.readme ./os4depot.readme
- lha -aq2o6 aiostreams-TEST.lha aiostreams/
# - name: Prepare test release
# image: walkero/lha-on-docker:latest
# environment:
# OS4DEPOT_PASSPHRASE:
# from_secret: OS4DEPOT_PASSPHRASE
# commands:
# - mkdir test-release
# - cp aiostreams-TEST.lha ./test-release/aiostreams.lha
# - cp os4depot.readme ./test-release/os4depot.readme
# - cp aminet.readme ./test-release/aminet.readme
# - name: Upload to TEST FTP
# image: cschlosser/drone-ftps
# environment:
# FTP_USERNAME:
# from_secret: MVBETAFTP_USERNAME
# FTP_PASSWORD:
# from_secret: MVBETAFTP_PASSWORD
# PLUGIN_HOSTNAME: mediavault.amiga-projects.net:21
# PLUGIN_SRC_DIR: /test-release
# PLUGIN_DEST_DIR: ./web/betas
# PLUGIN_SECURE: "false"
# PLUGIN_VERIFY: "false"
# PLUGIN_CLEAN_DIR: "false"
trigger:
branch:
include:
- master
event:
include:
- push
---
kind: pipeline
type: docker
name: release-aiostreams
workspace:
path: /drone/src
steps:
- name: create-release-archive
image: walkero/lha-on-docker:latest
commands:
- mkdir aiostreams
- mv ./docs ./aiostreams/
- mv ./simplejson ./aiostreams/
- mv ./*.py ./aiostreams/
- mv ./*.py.examples ./aiostreams/
- mv ./*.info ./aiostreams/
- cp ./*.md ./aiostreams/docs/
- mv LICENSE ./aiostreams/docs/
- sed -i "s/RELEASE_DATE/$(date +'%Y-%m-%d')/" ./aiostreams/docs/aiostreams.guide ./aiostreams/docs/CHANGELOG.md ./aiostreams/cmn.py
- sed -i "s/VERSION_TAG/${DRONE_TAG}/" ./aiostreams/docs/aiostreams.guide ./aiostreams/docs/CHANGELOG.md ./aiostreams/cmn.py ./aminet.readme ./os4depot.readme
- lha -aq2o6 aiostreams-${DRONE_TAG}.lha aiostreams/
- name: deploy-on-repo
image: plugins/github-release
settings:
api_key:
from_secret: GITHUB_RELEASE_API_KEY
files:
- "./aiostreams-*.lha"
title: "${DRONE_TAG} release"
- name: Prepare Aminet release
image: walkero/lha-on-docker:latest
commands:
- mkdir aminet-release
- cp aiostreams-${DRONE_TAG}.lha ./aminet-release/aiostreams.lha
- cp aminet.readme ./aminet-release/aiostreams.readme
- name: Upload to Aminet
image: cschlosser/drone-ftps
environment:
FTP_USERNAME: "anonymous"
FTP_PASSWORD: "[email protected]"
PLUGIN_HOSTNAME: main.aminet.net:21
PLUGIN_SRC_DIR: /aminet-release
PLUGIN_DEST_DIR: ./new
PLUGIN_SECURE: "false"
PLUGIN_VERIFY: "false"
PLUGIN_CHMOD: "false"
- name: Prepare OS4Depot release
image: walkero/lha-on-docker:latest
environment:
OS4DEPOT_PASSPHRASE:
from_secret: OS4DEPOT_PASSPHRASE
commands:
- mkdir os4depot-release
- cp aiostreams-${DRONE_TAG}.lha ./os4depot-release/aiostreams.lha
- cp os4depot.readme ./os4depot-release/aiostreams_lha.readme
- sed -i "s/OS4DEPOT_PASSPHRASE/$OS4DEPOT_PASSPHRASE/" ./os4depot-release/aiostreams_lha.readme
- name: Upload to OS4Depot
image: cschlosser/drone-ftps
environment:
FTP_USERNAME: "ftp"
FTP_PASSWORD: ""
PLUGIN_HOSTNAME: os4depot.net:21
PLUGIN_SRC_DIR: /os4depot-release
PLUGIN_DEST_DIR: ./upload
PLUGIN_SECURE: "false"
PLUGIN_VERIFY: "false"
PLUGIN_CHMOD: "false"
trigger:
branch:
include:
- master
event:
include:
- tag
---
kind: pipeline
type: docker
name: commit-version-changes
workspace:
path: /drone/src
steps:
- name: update-changelog-versions
image: walkero/lha-on-docker:latest
commands:
- sed -i "s/RELEASE_DATE/$(date +'%Y-%m-%d')/" ./CHANGELOG.md
- sed -i "s/VERSION_TAG/${DRONE_TAG}/" ./CHANGELOG.md
- sed -i "4 i \#\# [VERSION_TAG] - RELEASE_DATE\n" ./CHANGELOG.md
- name: commit-changelog-versions
image: appleboy/drone-git-push
environment:
DRONE_COMMIT_AUTHOR_EMAIL: "[email protected]"
DRONE_COMMIT_AUTHOR: "dronebot"
PLUGIN_SSH_KEY:
from_secret: DRONEBOT_SSH_KEY
settings:
branch: master
remote: ssh://[email protected]/walkero-gr/aiostreams.git
force: false
commit: true
commit_message: "Updating version in Changelog from Drone CI/CD [SKIP CI]"
author_name: "dronebot"
author_email: "[email protected]"
trigger:
branch:
include:
- master
event:
include:
- tag
depends_on:
- release-aiostreams
# ---
# kind: pipeline
# type: docker
# name: git-push-changes
# workspace:
# path: /drone/src
# steps:
# - name: create-test-archive
# image: walkero/lha-on-docker:latest
# commands:
# - sed -i "s/RELEASE_DATE/$(date +'%Y-%m-%d')/" ./CHANGELOG.md
# - sed -i "s/VERSION_TAG/TEST/" ./CHANGELOG.md
# - sed -i "4 i \#\# [VERSION_TAG] - RELEASE_DATE\n" ./CHANGELOG.md
# - name: git push
# image: appleboy/drone-git-push
# environment:
# DRONE_COMMIT_AUTHOR_EMAIL: "[email protected]"
# DRONE_COMMIT_AUTHOR: "dronebot"
# PLUGIN_SSH_KEY:
# from_secret: DRONEBOT_SSH_KEY
# settings:
# branch: ci-cd2
# remote: ssh://[email protected]/walkero-gr/aiostreams.git
# force: false
# commit: true
# commit_message: "Updating Changelog from Drone CI/CD [SKIP CI]"
# author_name: "dronebot"
# author_email: "[email protected]"
# trigger:
# branch:
# include:
# - ci-cd2
# event:
# include:
# - push