From 895f86c71e28e62485986ce4a423c8672a6664f5 Mon Sep 17 00:00:00 2001 From: giaogiao Date: Tue, 12 Sep 2023 14:10:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index f2ff30f..eae028d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -36,19 +36,18 @@ steps: image: golang volumes: - name: outdir - host: path: /root/web commands: - apt-get update && apt-get install tree -y - rm -rf ./app/* - cp -r /go/web/build/* ./app/ - tree - - sed 's?/static?/static/static?g' ./app/index.html - - sed 's?/favicon.ico?/static/favicon.ico?g' ./app/index.html - - sed 's?/logo192.png?/static/logo192.png?g' ./app/index.html - - sed 's?/manifest.json?/static/manifest.json?g' ./app/index.html - - go build -o main - - cp main /root/web/ - volumes: - - name: cache - temp: {} \ No newline at end of file + - sed -i 's?/static?/static/static?g' ./app/index.html + - sed -i 's?/favicon.ico?/static/favicon.ico?g' ./app/index.html + - sed -i 's?/logo192.png?/static/logo192.png?g' ./app/index.html + - sed -i 's?/manifest.json?/static/manifest.json?g' ./app/index.html + - go build -o /root/web/main + # - cp main /root/web/ + # volumes: + # - name: cache + # temp: {} \ No newline at end of file