From a05c44d48881c55d14b2d01fed13e2a84ac194ff Mon Sep 17 00:00:00 2001 From: eric Liu Date: Tue, 19 Sep 2023 04:02:44 +0000 Subject: [PATCH 1/2] Update .drone.yml --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index dd77bf2..ec6af0c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -33,13 +33,13 @@ steps: url: "https://ericxliu.me" validate: false output: /output -- name: ls-file +- name: add-commit-hash image: alpine/git volumes: - name: output path: /output commands: - - ls -al /output + - sed -i 's/\[commit\]/\[${DRONE_COMMIT_SHA:0:7}\]/g' layouts/partials/footer.html - name: git-push image: appleboy/drone-git-push:0.2.0-linux-amd64 volumes: From 41a3fc0f3fb28c024d0800a1f01a78782b29197f Mon Sep 17 00:00:00 2001 From: eric Liu Date: Tue, 19 Sep 2023 04:06:00 +0000 Subject: [PATCH 2/2] Update .drone.yml --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index ec6af0c..42e8008 100644 --- a/.drone.yml +++ b/.drone.yml @@ -39,7 +39,7 @@ steps: - name: output path: /output commands: - - sed -i 's/\[commit\]/\[${DRONE_COMMIT_SHA:0:7}\]/g' layouts/partials/footer.html + - sed -i 's/\[commit\]/\[${DRONE_COMMIT_SHA:0:7}\]/g' /output/index.html - name: git-push image: appleboy/drone-git-push:0.2.0-linux-amd64 volumes: