Skip to content

Commit f372bfd

Browse files
author
lith
committed
auto commit 1.6
1 parent 5fb780f commit f372bfd

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/action-main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@v2
2828

2929
# Runs a set of commands using the runners shell
30-
- name: Run startup.sh
30+
- name: Run startup.bash
3131
run: |
3232
set -e
3333
echo start build

Publish/DevOps/github/71.docker-image-build.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ args_="
77
88
export codePath=/root/temp/svn
99
10-
export version=`grep '<Version>' "${codePath}" -r --include Sers.Core.csproj | grep -oP '>(.*)<' | tr -d '<>'`
10+
export version=`grep '<Version>' ${codePath} -r --include *.csproj | grep -oP '>(.*)<' | tr -d '<>'`
1111
1212
export DOCKER_USERNAME=serset
1313
export DOCKER_PASSWORD=xxx
@@ -47,8 +47,7 @@ docker buildx ls
4747
#---------------------------------------------------------------------
4848
#(x.3)docker-构建多架构镜像( arm、arm64 和 amd64 )并推送到 Docker Hub
4949

50-
#docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
51-
50+
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
5251

5352

5453
dockerPath=$codePath/Publish/release/release/docker-image
@@ -58,7 +57,7 @@ do
5857
if [ -d $dockerPath/$dockerName ]
5958
then
6059
echo "docker build $dockerName"
61-
echo docker buildx build $dockerPath/$dockerName -t $DOCKER_USERNAME/$dockerName:$version -t $DOCKER_USERNAME/$dockerName --platform=linux/amd64,linux/arm64,linux/arm/v7 --push
60+
docker buildx build $dockerPath/$dockerName -t $DOCKER_USERNAME/$dockerName:$version -t $DOCKER_USERNAME/$dockerName --platform=linux/amd64,linux/arm64,linux/arm/v7 --push
6261
fi
6362
done
6463

Publish/DevOps/github/90.release-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ echo "(x.2)发布文件-压缩"
2424

2525
docker run --rm -i \
2626
-v $codePath:/root/code \
27-
serset/filezip dotnet FileZip.dll zip -p -i /root/code/Publish/release/release -o /root/code/Publish/release/${name}-${version}.zip
27+
serset/filezip filezip zip -p -i /root/code/Publish/release/release -o /root/code/Publish/release/${name}-${version}.zip
2828

2929

3030

0 commit comments

Comments
 (0)