change CDN url for docker release

This commit is contained in:
Max 2022-04-14 17:50:29 +08:00
parent 36ecdc1993
commit 2926ec99f5
3 changed files with 5 additions and 5 deletions

View file

@ -108,9 +108,9 @@ jobs:
run: |
coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION
# - name: Push To Silicon Valley
# run: |
# for file in ./dist/release/*; do coscmd upload $file /archives/; done;
- name: Push To Silicon Valley
run: |
for file in ./dist/release/*; do coscmd upload $file /archives/; done;
# - name: Configure COS For Beijing
# env:

View file

@ -20,7 +20,7 @@ ARG ARCH
RUN groupadd -r yao && useradd -r -g yao yao && \
apt-get update && \
apt-get install -y curl sudo procps net-tools
RUN curl -fsSL "https://release-sv.yaoapps.com/archives/yao-${VERSION}-linux-${ARCH}" > /usr/local/bin/yao && \
RUN curl -fsSL "https://release-sv-1252011659.cos.na-siliconvalley.myqcloud.com/archives/yao-${VERSION}-linux-${ARCH}" > /usr/local/bin/yao && \
chmod +x /usr/local/bin/yao && \
mkdir -p /data/app

View file

@ -18,7 +18,7 @@ FROM alpine:latest
ARG VERSION
ARG ARCH
RUN apk --no-cache add curl
RUN curl -fsSL "https://release-sv.yaoapps.com/archives/yao-${VERSION}-linux-${ARCH}" > /usr/local/bin/yao && \
RUN curl -fsSL "https://release-sv-1252011659.cos.na-siliconvalley.myqcloud.com/archives/yao-${VERSION}-linux-${ARCH}" > /usr/local/bin/yao && \
chmod +x /usr/local/bin/yao
RUN mkdir -p /data/app && \
cd /data/app && /usr/local/bin/yao init && \