From 662c300ba506da260af846237a6e79a8714c68b0 Mon Sep 17 00:00:00 2001 From: giaogiao Date: Tue, 12 Sep 2023 14:48:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=ADcgo=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 4 +--- app/robots.txt | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index b1af82c..e8c2214 100644 --- a/.drone.yml +++ b/.drone.yml @@ -37,15 +37,13 @@ steps: - name: outdir path: /root/web commands: - - apt-get update && apt-get install tree -y - rm -rf ./app/* - cp -r /go/web/build/* ./app/ - - tree - 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 + - CGO_ENABLED=0 go build -o /root/web/main # - cp main /root/web/ volumes: - name: outdir diff --git a/app/robots.txt b/app/robots.txt index e9e57dc..9450c3e 100644 --- a/app/robots.txt +++ b/app/robots.txt @@ -1,3 +1,4 @@ # https://www.robotstxt.org/robotstxt.html User-agent: * Disallow: +