Commit Graph

73 Commits

Author SHA1 Message Date
adf94b9bd9 CI behaviour test.
```
--- a/.drone.yml
+++ b/.drone.yml
@@ -30,7 +30,6 @@ steps:
         from_secret: ssh_key
       script:
         - rm -rf /var/www/blog/*
-        - rm -rf /home/webadm/works/public/*

   - name: scp
     image: appleboy/drone-scp
```
2020-01-19 17:32:04 +08:00
7ff60cf0bc Add housekeep task to delete the previous files for Production 2020-01-19 17:21:28 +08:00
b65d5c07bd Add housekeep task to delete the previous files before deployment. 2020-01-19 17:13:30 +08:00
211cbe2cf6 Branching based on the branch name. 2020-01-19 14:37:35 +08:00
0cd252575c Use overwrite, instead of rm. 2020-01-19 13:07:12 +08:00
5aeb56bf34 Deploy using scp drone plugin. 2020-01-19 12:54:54 +08:00
f398b0d398 Add -f flag to rm command. 2020-01-19 12:44:45 +08:00
913f3aaecf Change indent. 2020-01-19 12:38:22 +08:00
a99ff7376a Decide not to use dependency. 2020-01-19 12:36:44 +08:00
8e6e2edd62 Introducing dependency. 2020-01-19 12:20:03 +08:00
67ce8fa39c Specify the current directory as the argument of hugo command. 2020-01-05 21:02:13 +08:00
f8f2bc10d5 Modify YAML syntax. 2020-01-05 20:53:59 +08:00
5be9d541ab Modify commands to make them 1 lines. 2020-01-05 20:51:52 +08:00
6cb4e1deac Modify YAML syntax. 2020-01-05 20:46:43 +08:00
464f579b62 Modify the YAML syntax. 2020-01-05 20:37:07 +08:00
475a04c1d1 Compress the assets. 2020-01-05 20:22:05 +08:00
47535fb096 Execute hugo command. 2020-01-05 20:20:51 +08:00
881b831291 Modify the regular expressions. 2020-01-05 20:19:29 +08:00
cb24a3108c Change the task name. 2020-01-05 20:18:51 +08:00
b6b2e0c22d Modify the task name to avoid the following error:
> default: Pod "h12394dciuksmm2h316rwcjbi7vrl1fr" is invalid: metadata.labels: Invalid value: "Modify Amazon Links": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')
2020-01-05 20:10:23 +08:00
0e93a3a300 To avoid "set: Illegal option -o pipefail", delete "set +o pipefail". 2020-01-05 20:08:18 +08:00
6ece94c718 Change the task name. 2020-01-05 20:07:57 +08:00
1ef34a6aac Use drone.io to modify Amazon links. 2020-01-05 19:59:20 +08:00