From 6d28de39c165e099bbc6954d9cc891554de6437b Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sun, 17 Jul 2022 11:23:39 +0800 Subject: [PATCH] build: fix webhook push wihout authorization header. --- .drone.yml | 4 ++-- Dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index a47d7e0..c1150e0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -97,9 +97,9 @@ steps: - name: deploy image: plugins/webhook settings: - token-value: + token_value: from_secret: watchtower-webhook-token - token-type: Bearer + token_type: Bearer urls: https://watchtower.ivanli.cc/v1/update content_type: application/json template: | diff --git a/Dockerfile b/Dockerfile index 29b6d38..69f7263 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ FROM node:16-alpine as base -# RUN apk add --no-cache make gcc g++ python3 WORKDIR /app COPY package-lock.json package.json ./ RUN npm ci --no-audit --legacy-peer-deps COPY . . + FROM node:16-alpine as release WORKDIR /app COPY --from=base /app ./