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