File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -39,19 +39,20 @@ jobs:
3939 run : |
4040 cargo build --release
4141
42+ - name : Release
43+ uses : softprops/action-gh-release@v1
44+ with :
45+ files : |
46+ target/release/liki4_teloxide_bot
47+
4248 - name : Set up Docker Buildx
4349 uses : docker/setup-buildx-action@v3
4450
45- - name : Build Image
51+ - name : Build Image and Upload to Aliyun
4652 shell : bash
4753 run : |
4854 docker build -t liki4_teloxide_bot:$VERSION --output=type=docker .
49- docker save liki4_teloxide_bot:$VERSION > liki4_teloxide_bot_$VERSION.tar
50- echo "IMAGE=liki4_teloxide_bot_$VERSION.tar" >> $GITHUB_ENV
51-
52- - name : Release
53- uses : softprops/action-gh-release@v1
54- with :
55- files : |
56- target/release/liki4_teloxide_bot
57- ${{ env.IMAGE }}
55+ docker version
56+ docker login --username=${{ secrets.DOCKER_USERNAME }} --password=${{ secrets.DOCKER_PASSWORD }} registry.cn-hongkong.aliyuncs.com
57+ docker tag liki4_teloxide_bot:$VERSION registry.cn-hongkong.aliyuncs.com/liki4/teloxide_bot:$VERSION
58+ docker push registry.cn-hongkong.aliyuncs.com/liki4/teloxide_bot:$VERSION
You can’t perform that action at this time.
0 commit comments