This commit is contained in:
fit2-zhao 2020-12-03 19:40:09 +08:00
commit 1665a0f91a
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 }}