@@ -30,14 +30,20 @@ jobs:
30
30
uses : useblacksmith/setup-node@v5
31
31
with :
32
32
node-version : ' 20'
33
- cache : ' yarn'
34
- cache-dependency-path : yarn.lock
35
33
36
34
- name : Build front
37
35
run : |
38
36
npm install -g yarn
39
37
yarn && yarn build
40
38
39
+ - name : Setup Node
40
+ # uses: actions/setup-node@v4
41
+ uses : useblacksmith/setup-node@v5
42
+ with :
43
+ node-version : ' 20'
44
+ cache : ' yarn'
45
+ cache-dependency-path : yarn.lock
46
+
41
47
- name : Set up QEMU # 设置 QEMU 环境,用来模拟操作系统,用来编译 arm64 镜像和 amd64 镜像
42
48
uses : docker/setup-qemu-action@v3
43
49
with :
85
91
fi
86
92
done
87
93
88
- command="docker buildx build --platform linux/amd64,linux/arm64 --push . "
94
+ command="docker buildx build --provenance=false -- platform linux/amd64,linux/arm64 --push . "
89
95
for repo in ${repos[@]}; do
90
- command="$command -t $repo\:latest -t $repo\:$(git rev-parse --short HEAD)"
96
+ command="$command -t $repo\:latest -t $repo\:$(date +%Y-%m-%d_%H-%M-%S)_$( git rev-parse --short HEAD)"
91
97
done
92
- echo "$command"
93
- eval $command
94
-
95
- - name : executing remote ssh commands using ssh key
96
-
97
- if : ${{ github.event.inputs.updateServerVersion == 'true' }}
98
- with :
99
- host : ${{ secrets.HOST }}
100
- port : ${{ secrets.PORT }}
101
- username : ${{ secrets.USERNAME }}
102
- passphrase : ${{ secrets.PASSPHRASE }}
103
- key : ${{ secrets.KEY }}
104
- script : |
105
- docker run --rm \
106
- -v /var/run/docker.sock:/var/run/docker.sock \
107
- -v ~/.docker/config.json:/config.json \
108
- containrrr/watchtower \
109
- --cleanup \
110
- --run-once \
111
- zfile-docs
98
+ eval $command
0 commit comments