Skip to content

Commit e7cb8bd

Browse files
committed
update: ci
1 parent 6c6107c commit e7cb8bd

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/packing.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)