build: 更新 action

This commit is contained in:
BugKing 2020-12-03 19:37:06 +08:00 committed by GitHub
parent 02681ef715
commit 5ef0be5c8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -3,13 +3,15 @@ name: Build Docker Image and Push
on:
push:
branches:
- main
- master
- v1*
pull_request:
branches:
- main
- master
- v1*
workflow_dispatch:
jobs:
build_push:
runs-on: ubuntu-latest
@ -55,4 +57,4 @@ jobs:
password: ${{ secrets.DOCKER_HUB_TOKEN }}
repository: metersphere/metersphere
tag_with_ref: true
build_args: MS_VERSION=${{ env.GITHUB_REF_SLUG }}-${{ env.GITHUB_SHA_SHORT }}
build_args: MS_VERSION=${{ env.GITHUB_REF_SLUG }}-${{ env.GITHUB_SHA_SHORT }}