-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.drone.yml
More file actions
61 lines (59 loc) · 1.74 KB
/
.drone.yml
File metadata and controls
61 lines (59 loc) · 1.74 KB
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
---
kind: pipeline
name: default
clone:
steps:
- name: timestamp
image: joomlaprojects/docker-images:updater
environment:
ACCESS_TOKEN:
from_secret: ACCESS_TOKEN
KEY_TIMESTAMP:
from_secret: KEY_TIMESTAMP
GIT_USER_NAME: Joomla Drone
GIT_USER_EMAIL: ci@joomla.org
GIT_BASE_BRANCH_NAME: main
GIT_TARGET_BRANCH_NAME: ${DRONE_BRANCH}
commands:
- mkdir -p /go/keys || true
- echo $$KEY_TIMESTAMP > /go/keys/timestamp.json
- cd /go
- /tuf/docker-entrypoint.sh update-timestamp
- name: upload
image: joomlaprojects/docker-images:packager
environment:
rclone_key:
from_secret: RCLONE_KEY
rclone_user:
from_secret: RCLONE_USER
rclone_host:
from_secret: RCLONE_HOST
rclone_root:
from_secret: RCLONE_ROOT
GITHUB_TOKEN:
from_secret: ACCESS_TOKEN
CLOUDFLARE_TOKEN:
from_secret: CLOUDFLARE_TOKEN
CLOUDFLARE_ZONE_ID:
from_secret: CLOUDFLARE_ZONE_ID
commands:
- mkdir -p ~/.ssh
- eval $(ssh-agent -s)
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- echo "$rclone_key" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- ssh-add
- rclone config create upload sftp host $rclone_host user $rclone_user port 22
- rclone copy ./repository/ upload:$rclone_root/cms
- /bin/cloudflare_clear_cache update.joomla.org/cms
- /bin/add_github_status.sh "Repository deployed" "Tuf Repository timestamp Updated and deployed to update server." "https://update.joomla.org/cms"
trigger:
branch:
- main
event:
- cron
- custom
---
kind: signature
hmac: b5ec9fe167f21c1873d2ce794024c6aa3600cea88b17d03f50a70dbe3f15089c
...