Merge pull request #648 from trheyi/main

refactor: Update Docker image versions and artifact upload actions
This commit is contained in:
Max 2024-07-04 12:39:56 +08:00 committed by GitHub
commit 3e390ca41b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 22 deletions

View file

@ -6,7 +6,7 @@ on:
# paths: # paths:
# - ".github/workflows/docker.yml" # - ".github/workflows/docker.yml"
workflow_run: workflow_run:
workflows: ["Build Linux Dev"] workflows: ["Build Linux Artifacts"]
types: types:
- completed - completed

View file

@ -30,7 +30,6 @@ jobs:
REGION: na-siliconvalley REGION: na-siliconvalley
run: | run: |
/python3/venv/bin/coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION /python3/venv/bin/coscmd config -a $SECRET_ID -s $SECRET_KEY -b $BUCKET -r $REGION
echo "hello world" > /data/hello.txt
- name: Build - name: Build
run: | run: |

View file

@ -108,27 +108,27 @@ jobs:
mv dist/release/yao-$VERSION-dev-darwin-arm64 dist/release/yao-$VERSION-unstable-darwin-arm64 mv dist/release/yao-$VERSION-dev-darwin-arm64 dist/release/yao-$VERSION-unstable-darwin-arm64
mv dist/release/yao-$VERSION-dev-darwin-amd64 dist/release/yao-$VERSION-unstable-darwin-amd64 mv dist/release/yao-$VERSION-dev-darwin-amd64 dist/release/yao-$VERSION-unstable-darwin-amd64
- name: Push arm64 To Silicon Valley # - name: Push arm64 To Silicon Valley
uses: TencentCloud/cos-action@v1 # uses: TencentCloud/cos-action@v1
with: # with:
secret_id: ${{ secrets.COS_ID }} # secret_id: ${{ secrets.COS_ID }}
secret_key: ${{ secrets.COS_KEY }} # secret_key: ${{ secrets.COS_KEY }}
cos_bucket: release-sv-1252011659 # cos_bucket: release-sv-1252011659
cos_region: na-siliconvalley # cos_region: na-siliconvalley
local_path: dist/release/yao-${{ env.VERSION }}-unstable-darwin-arm64 # local_path: dist/release/yao-${{ env.VERSION }}-unstable-darwin-arm64
remote_path: /archives/yao-${{ env.VERSION }}-unstable-darwin-arm64 # remote_path: /archives/yao-${{ env.VERSION }}-unstable-darwin-arm64
clean: false # clean: false
- name: Push amd64 To Silicon Valley # - name: Push amd64 To Silicon Valley
uses: TencentCloud/cos-action@v1 # uses: TencentCloud/cos-action@v1
with: # with:
secret_id: ${{ secrets.COS_ID }} # secret_id: ${{ secrets.COS_ID }}
secret_key: ${{ secrets.COS_KEY }} # secret_key: ${{ secrets.COS_KEY }}
cos_bucket: release-sv-1252011659 # cos_bucket: release-sv-1252011659
cos_region: na-siliconvalley # cos_region: na-siliconvalley
local_path: dist/release/yao-${{ env.VERSION }}-unstable-darwin-amd64 # local_path: dist/release/yao-${{ env.VERSION }}-unstable-darwin-amd64
remote_path: /archives/yao-${{ env.VERSION }}-unstable-darwin-amd64 # remote_path: /archives/yao-${{ env.VERSION }}-unstable-darwin-amd64
clean: false # clean: false
- name: Archive production artifacts - name: Archive production artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4