Feat/update actions (#3758)

This commit is contained in:
yuehua-s 2024-04-16 06:35:20 +08:00 committed by GitHub
parent 5eb37ea2e3
commit 72a6878287
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,16 +1,13 @@
name: docker-build name: docker-build
on: on:
push:
branches:
- master
pull_request: pull_request:
branches: types: [ closed ]
- master
env: env:
TZ: Asia/Shanghai TZ: Asia/Shanghai
jobs: jobs:
docker-build: docker-build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps: steps:
- name: Optimize Disk Space - name: Optimize Disk Space
uses: hugoalh/disk-space-optimizer-ghaction@v0.8.0 uses: hugoalh/disk-space-optimizer-ghaction@v0.8.0
@ -125,14 +122,6 @@ jobs:
docker build -t uswccr.ccs.tencentyun.com/chatchat/chatchat:${{ steps.imageTag.outputs.image_tag }} -f Dockerfile . docker build -t uswccr.ccs.tencentyun.com/chatchat/chatchat:${{ steps.imageTag.outputs.image_tag }} -f Dockerfile .
- name: Show Images Size - name: Show Images Size
run: docker images run: docker images
- shell: bash
env:
CCRUSER: ${{ secrets.CCR_REGISTRY_USERNAME }}
CCRPASS: ${{ secrets.CCR_REGISTRY_PASSWORD }}
run: |
echo "user:$CCRUSER"
echo "pass:$CCRPASS"
- name: Login To Tencent CCR - name: Login To Tencent CCR
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with: